Order of xvalues when datetime

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Mike Glazer
Newbie
Newbie
Posts: 13
Joined: Mon Jan 24, 2005 5:00 am
Location: Oxford
Contact:

Order of xvalues when datetime

Post by Mike Glazer » 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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Sep 23, 2005 1:35 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply