Page 1 of 1

TeeChart: position of legend

Posted: Tue Oct 09, 2007 5:49 pm
by 10046885
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.

Posted: Wed Oct 10, 2007 10:07 am
by yeray
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.