Legend box always truncate the last line....

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

Legend box always truncate the last line....

Post by btor » Sat Aug 26, 2023 6:03 am

Hello,

I don't understand why my legend box is truncated to show only the upper half of its last line. See attached screenshot. How can I fix this..?

Thanks a lot for help on this.

regards Tor
Attachments
teechart.png
teechart.png (55.27 KiB) Viewed 14840 times

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

Re: Legend box always truncate the last line....

Post by btor » Sun Aug 27, 2023 8:54 pm

Anyone?

Does it exist a method which can override the Legend box' boundaries..?

regards Tor

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

Re: Legend box always truncate the last line....

Post by Yeray » Mon Sep 04, 2023 1:52 pm

Hello Tor,

The line series is drawn as a line in the legend. This is the expected behaviour.
You can fully customize the legend symbols as shown in the example here.
Or, if you just want to show a square for a line series, you can "hack" it: just add an dummy bar series with no data; set its title and color to those from the line series; and hide your line series from the legend with ShowInLegend:=false.
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