time in x-axis

Posted by aravindkumar 
time in x-axis
October 15, 2008 02:53PM
How can i get time on x-axis for
for example if i wanna plot a graph for one hour say 10:00 to 11:00 but the data i do have is only for periods in between 10:20 and 10:40
but i need the graphs x-axis from 10:00 to 11:00
how can i do this?

regards
Aravindkumar
Re: time in x-axis
October 17, 2008 05:50AM
Hi,
To extend the axis beyond the graph's actual data, you can use the setIntervalStartX and setIntervalEndX options (or setIntervalStartY and setIntervalEndY if it's about the vertical axis).

I hope this helps,
Sabin
Re: time in x-axis
October 18, 2008 06:36AM
Is There any example in which i can see a time vs value graph ?
thanks in advance
Re: time in x-axis
October 20, 2008 07:26AM
Not specifically 'time vs value', but on the [www.jscharts.com] page, the last example is using Labels on the Y axis.
myChart.setLabelY([0, 'Low']);
myChart.setLabelY([5, 'Medium']);
myChart.setLabelY([10, 'High']);
In this example the label is associated with a value on the Y axis. In your graphs you could set labels like '10:00', '10:30' etc on the X axis.

But for now, the labels can only be associated with real data values, set with setDataArray(). We might allow association with any value in the future versions.
Sorry, you do not have permission to post/reply in this forum.