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

show title on pie chart

1 Answer 103 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Mehrdad
Top achievements
Rank 1
Mehrdad asked on 17 Aug 2011, 11:40 AM
Hi,
How can I show legend on chart in RadChart?
I mean insted of showing values on pie ,show the title of that part.
for example if a pie has 3parts with values 10,20 and 30, it draws based on the values but show title of values instead of values itself

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 22 Aug 2011, 03:11 PM
Hello Mehrdad,

You can achieve this by creating new ItemMapping and set its DataPointMember to LegendLabel. You will have to specify a FieldName which points from where the data should be taken.
Fore example:
pieSeries.ItemMappings.Add(new ItemMapping("Title", DataPointMember.LegendLabel));
Fore more details checkout the attached sample project.

You can also find more about Chart Legends here:
http://www.telerik.com/help/wpf/radchart-features-chart-legend.html

Best wishes,
Peshito
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
Tags
Chart
Asked by
Mehrdad
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or