Force Graph NOT to sort time on the x axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Stevez
Newbie
Newbie
Posts: 5
Joined: Thu May 29, 2008 12:00 am

Force Graph NOT to sort time on the x axis

Post by Stevez » Thu Jun 19, 2008 2:14 am

I am collecting data on a daily basis and time stamping it.

I need to be able to graph multiple days of data.
My series is comprised of time on the X axis and the Value on the Yaxis.

In the Data Source tab, My X value has DateTime checked
In the General Tab: Sort = None.

My problem is that the data is graphed after the time is sorted. As a test I created 20 datapoints with a value of 5 for today's date, copied the data for yesteday, kept the time the same but made the value 100. Result - a sawtooth graph going from 5 to100 to 5 o 100 etc.

How can I avoid the data getting sorted. I am using a MemDataSource and the data is shown sequentially (not sorted).

Thanks

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

Post by Narcís » Thu Jun 19, 2008 9:07 am

Hi Stevez,

Have you tried using this:

Code: Select all

  Series1.XValues.Order := loNone;
before populating your series or assigning the datasource?
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