Page 1 of 1

Order of xvalues when datetime

Posted: Fri Sep 23, 2005 1:14 pm
by 9235719
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.

Posted: Fri Sep 23, 2005 1:35 pm
by narcis
Hi Mike,

Could you please send us an example we can run "as-is" to reproduce the problem here?

You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.