TDBChart (Pie) and legend

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Frédéric
Newbie
Newbie
Posts: 2
Joined: Tue Aug 02, 2005 4:00 am

TDBChart (Pie) and legend

Post by Frédéric » Tue Aug 02, 2005 2:01 pm

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
Regards

Frédéric SCHENCKEL

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Aug 03, 2005 3:36 pm

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;

Frédéric
Newbie
Newbie
Posts: 2
Joined: Tue Aug 02, 2005 4:00 am

Post by Frédéric » Wed Aug 03, 2005 3:58 pm

Thank you, I will try to use the event...
Regards

Frédéric SCHENCKEL

Post Reply