Page 1 of 1

TDBChart (Pie) and legend

Posted: Tue Aug 02, 2005 2:01 pm
by 9039909
Hello,


How can I custom the text who appears in the legend ?
Is it possible to select the dataset fields who must appear or is it manual ?

Thanks

Posted: Wed Aug 03, 2005 3:36 pm
by Pep
Hi Frédéric,
How can I custom the text who appears in the legend ?
manual ?
You can customize the text of the Legend using the OnGetLegendText Event, which allow you to change the text of the items that appear into it.
If you need more customization then you will have to use the Canvas techniques, like in the example you can find in the Demo Features project under : All Features -> Welcome -> Miscellaneous -> Legend -> Drawing more Text
Is it possible to select the dataset fields who must appear or is it
You only have the option to choose the legend Style usign :
Chart1.Legend.LegendStyle := lsValues;

Posted: Wed Aug 03, 2005 3:58 pm
by 9039909
Thank you, I will try to use the event...