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.
TeeChart: position of legend
Hi matthias,
You can modify the legend position doing:
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.
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
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |