Order of xvalues when datetime
Posted: Fri Sep 23, 2005 1:14 pm
I have a graph in which the XVALUES are datetime values. I add a button to add one hour to all values and replot. However, when values to the right of the graph go over 24 hours I get an error. How can I change the values displayed without resetting the order of plot. So for instance say the values that I have to start with are at the following tick marks
19:00 20:00 21:00 22:00 23:00
I now add an hour to make them
20:00 21:00 22:00 23:00 24:00
If I change the last one back to 0:00, then the chart plots these values at the left of the graph and you get
0:00 ------- 20:00 21:00 22:00 23:00
In other words I want to change the values of the datetime array but preserve the order to get
20:00 21:00 22:00 23:00 0:00 etc
I tried setting XVALUES.order to IoNone but this did not stop TChart from reordering from small to large.
19:00 20:00 21:00 22:00 23:00
I now add an hour to make them
20:00 21:00 22:00 23:00 24:00
If I change the last one back to 0:00, then the chart plots these values at the left of the graph and you get
0:00 ------- 20:00 21:00 22:00 23:00
In other words I want to change the values of the datetime array but preserve the order to get
20:00 21:00 22:00 23:00 0:00 etc
I tried setting XVALUES.order to IoNone but this did not stop TChart from reordering from small to large.