Hi,
I have a series which is loaded with the top 20 (could be 30, 40, 80 or any number) sales totals in descending order. I want to be able to click a button and have it switch the display from "high to low" to "low to high" (or the other way around) without reloading the series.
I've looked through this forum and all I can find is how to sort by labels or the xlabel but not by the yvalue unless I set the new sort order and reload the series.
How do I do this without reloading the series?
.
Sorting a Series.
Re: Sorting a Series.
Hi,
Here is what I'd like to be able to do - these 2 images:
Programatically be able to set what appears to be Series1.General.Options.Sort to "Bar Ascending" or to "Bar Descending".
How do I do that?
.
Here is what I'd like to be able to do - these 2 images:
Programatically be able to set what appears to be Series1.General.Options.Sort to "Bar Ascending" or to "Bar Descending".
How do I do that?
.
- Attachments
-
- TeeChart2.jpg (134.84 KiB) Viewed 7527 times
-
- TeeChart1.jpg (142.79 KiB) Viewed 7517 times
Re: Sorting a Series.
Hello,
Try with this:
Try with this:
Code: Select all
Series1.YValues.Order:=loDescending; //or loAscending
Series1.CheckOrder;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |