Page 1 of 1

Is possible to sort datas in a chart?

Posted: Tue Dec 20, 2005 2:50 pm
by 8441073
Hello,

I have a chart (THistogramSeries), with some data added programmatically:


series1.AddY(value1,description1);
series1.AddY(value2,description2);
series1.AddY(value3,description3);
...
...


After this, I want to sort all data values (from the most little to the biggest).

Is there a method to sort datas currently stored in chart?

Thank you

Posted: Tue Dec 20, 2005 3:04 pm
by narcis
Hi NoName,

Yes, this can be done like this:

Code: Select all

Series1.YValues.Order:=loAscending;