Hi everybody!
(first of all, excuse my bad english, i'm a beginner)

i want to draw a linechart of percent by dates (percent in y and dates
in x axis)
i want to symbolize each week of a current month by just display each
monday of each week.
(all of these mondays are stocked into a array called mondays[].)

so, my chart will have just 4 or 5 visible dates on the x-axis.

i tried to work with the chxr parameter by changing it in the options
here is how i set my columns :

var chartTimeLine = new google.visualization.DataTable();
chartTimeLine.addColumn('date', 'Temps');
chartTimeLine.addColumn('number','Fréquence');
 for (var j=0;j<mesFreq.length;j++){
        chartTimeLine.addRows([
               [mondays[j],mesFreq[j]]
         ])
}

var myOptions = {
axis_index:0,
start_val:mondays[0],
end_val:mondays[mondays.length-1],
opt_step:mondays.length/2
}

var chartLine = new google.visualization.LineChart(myDiv);
chartLine.draw(chartTimeLine, myOptions);

so, my result shows me a chart with several dates of my current month
and not just the four mondays i would like to display.

Do you have any idea on what is the problem and how i can fix it,
please?

(and i don't want to use an annotated time line)

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to