Is possible to sort datas in a chart?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
NoName
Newbie
Newbie
Posts: 34
Joined: Fri Nov 15, 2002 12:00 am
Location: Italy

Is possible to sort datas in a chart?

Post by NoName » Tue Dec 20, 2005 2:50 pm

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

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

Post by Narcís » Tue Dec 20, 2005 3:04 pm

Hi NoName,

Yes, this can be done like this:

Code: Select all

Series1.YValues.Order:=loAscending;
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