TBarSeries and Order

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

TBarSeries and Order

Post by Calou » Fri Jul 02, 2010 9:52 am

Hello,

On the chart we can see that the BarSeries are orderd by the yellow color.
Is there is a quickly method to order it by the purple color?

Thanks for help

Regards
Attachments
Graphique_OccStatus0.jpg
Graphique_OccStatus0.jpg (75.09 KiB) Viewed 6829 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TBarSeries and Order

Post by Yeray » Fri Jul 02, 2010 10:40 am

Hi Calou,

Have you tried the following?

Code: Select all

Chart1.ExchangeSeries(0,1);
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

Re: TBarSeries and Order

Post by Calou » Fri Jul 02, 2010 2:14 pm

no this is not what i want.
In the case the yellow bar graph is in descendant order.
I would like in an other case to order the purple bar in descendant order by calling one function.
Of course i am able to recalculate all the point values in order to do that but perhaps you have it in your methods.

Regards

Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

Re: TBarSeries and Order

Post by Calou » Fri Jul 02, 2010 2:17 pm

I think "sorted" in order of "ordered" is more correct

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TBarSeries and Order

Post by Yeray » Fri Jul 02, 2010 3:11 pm

Hi Calou,

If you want to Order a Series by the YValues ValueList, you can do it by:

Code: Select all

  Chart1[1].YValues.Order:=loDescending;
  Chart1[1].CheckOrder;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply