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

Pie chart, legend with item + value>

1 Answer 69 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Thye
Top achievements
Rank 1
Thye asked on 17 Dec 2012, 08:18 PM
Hello,

Currently I'm using a Chart, type pie. I've a legend next to the pie, to define the colors in the pie. Next to the chart, there is a DataList, which shows the corresponding data value per item. 

I was wondering, if it were possible, to show the item name AND the item value in the legend. Then I can delete my DataList, and the design will be much better.

Is that possible?

Greetings,
Thye

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 20 Dec 2012, 12:26 PM
Hi Thye,

You can use the BeforeLayout event of the RadChart to change the Legend Item Labels. I have attached an example solution and a screenshot of the end result.

I hope this helps.

Kind regards,
Petar Kirov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (Obsolete)
Asked by
Thye
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or