Page 1 of 1

Force Graph NOT to sort time on the x axis

Posted: Thu Jun 19, 2008 2:14 am
by 12049157
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

Posted: Thu Jun 19, 2008 9:07 am
by narcis
Hi Stevez,

Have you tried using this:

Code: Select all

  Series1.XValues.Order := loNone;
before populating your series or assigning the datasource?