This is a migrated thread and some comments may be shown as answers.

Pie Chart Legend

1 Answer 75 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sunil
Top achievements
Rank 1
Sunil asked on 12 Aug 2008, 02:12 PM
Dear Telerik,

            I have to display legend information for each pie slice  generated from the database table. Every legend item should display the name with the percentage information . Currently I am getting item name with #%.(Jan #%)
I need to display items in legend as follows.
Ex:
*Jan 60% * Feb 20% *Mar 20%

And the legend should display at the bottom of the chart not overlaping on to the chart

  Thanks in advance.

Regards,
Sunil

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 13 Aug 2008, 07:34 AM
Hi Sunil,

The special format strings used for DefaultLabelValue do not apply for the legend items. You can use the DefaultLabelValue to compose the label for you - set it to "#ITEM  #%". Then hook on BeforeLayout event, extract the ChartSeriesItem label text and assign it to the corresponding legend item label.

Hope this helps.

Sincerely,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Sunil
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or