Change legend item order

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
EdDressel
Newbie
Newbie
Posts: 32
Joined: Mon Dec 10, 2018 12:00 am

Change legend item order

Post by EdDressel » Fri May 31, 2019 7:06 pm

I have a TChart showing a legend with 3 series and 3 items in the legend. How can I change the order of the first and second item?
Thanks,

Ed Dressel

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

Re: Change legend item order

Post by Yeray » Mon Jun 03, 2019 9:40 am

Hello,

You can change the series order with the ExchangeSeries

Code: Select all

  Chart1.ExchangeSeries(1,2);
Note this will also affect the series drawing order.
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