TeeChart: position of legend

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
matthias
Newbie
Newbie
Posts: 3
Joined: Tue Oct 02, 2007 12:00 am

TeeChart: position of legend

Post by matthias » Tue Oct 09, 2007 5:49 pm

Hallo, three beginners questions concerning TChartLegend:

I need to position a legend (Alignment:=laBottom) so that the left angle of the legend is exactly beneath the y-axis. Every entry in the legend should be on a separate row. Is there an easy way to get this?

And: How to control the space between the symbol and the text of a legend item?

Thanks for all help!

Matthias.

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

Post by Yeray » Wed Oct 10, 2007 10:07 am

Hi matthias,
You can modify the legend position doing:

Code: Select all

Chart1.Legend.CustomPosition := True;
Chart1.Legend.Left := xx;
Chart1.Legend.Top := xx;
Chart1.MarginBottom := xx; //you'll probably need to change chart margins too
But it's not possible to draw the legend under the bottom axis with the default format (it's possible with bottom Chart1.Legend.Alignment := laBottom;) as discussed in this
thread. Otherwise, I've added it to our wish-list to be fixed in future releases. (TV52012513).

And regarding to the symbol distance to the text, the only way I can think right now is drawing your custom legend directly to the canvas. But I've added it to our wish-list too (TV52012514).

So, please be aware at this forum for new release announcements and what's being implemented/fixed on them.
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