Updating Legend[].item text afterward

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Chris R
Newbie
Newbie
Posts: 2
Joined: Tue Jul 19, 2022 12:00 am

Updating Legend[].item text afterward

Post by Chris R » Tue Oct 11, 2022 2:46 am

Hi,

I have a procedure updating the Legend[].item.text value in order to make the Legend more readable. However, it seems that the legend items can then overlap each other. Can I refresh the legend to update item positions or manually set the required length of the legend items?

Regards,

Chris

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

Re: Updating Legend[].item text afterward

Post by Yeray » Mon Oct 17, 2022 9:02 am

Hello Chris,

Have you tried setting Legend.VertSpacing?
Ie:

Code: Select all

  Chart1.Legend.VertSpacing:=10;
LegendVertSpacing.png
LegendVertSpacing.png (22.41 KiB) Viewed 4702 times
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