Page 1 of 1

Updating Legend[].item text afterward

Posted: Tue Oct 11, 2022 2:46 am
by 16594053
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

Re: Updating Legend[].item text afterward

Posted: Mon Oct 17, 2022 9:02 am
by yeray
Hello Chris,

Have you tried setting Legend.VertSpacing?
Ie:

Code: Select all

  Chart1.Legend.VertSpacing:=10;
LegendVertSpacing.png
LegendVertSpacing.png (22.41 KiB) Viewed 3390 times