Reorder bar graphs

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
btor
Newbie
Newbie
Posts: 4
Joined: Thu May 25, 2023 12:00 am

Reorder bar graphs

Post by btor » Fri Jun 07, 2024 10:59 am

Hi,

How can I most elegantly reorder the series in the screenshot below so the series with the tallest bars get moved backwards so they don't hide lower value series...? Does it exist a property which achieve this?

Thanks for comments and tips...

regards btor

Image

btor
Newbie
Newbie
Posts: 4
Joined: Thu May 25, 2023 12:00 am

Re: Reorder bar graphs

Post by btor » Fri Jun 07, 2024 2:12 pm

I pasted the URL in the IMG field but somehow it didn't got saved...

Image

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

Re: Reorder bar graphs

Post by Yeray » Mon Jun 10, 2024 8:31 am

Hi,

You can use the ExchangeSeries method with this purpose. For example:

Code: Select all

  Chart1.ExchangeSeries(Chart1[0], Chart1[Chart1.SeriesCount-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

Post Reply