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

PieChart's Label

2 Answers 51 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jara
Top achievements
Rank 1
Jara asked on 07 Oct 2011, 01:32 PM
Hi,
How can I create combined Pie chart labesl (join YValue and Label);
for example
Product 1 : 56
Product 2 : 87
Like in this example http://demos.telerik.com/silverlight/#Chart/SmartLabels
6% HTC
13% Apple

Thanks,
Jara

2 Answers, 1 is accepted

Sort by
0
Accepted
Sia
Telerik team
answered on 11 Oct 2011, 09:34 AM
Hi Jara,

You need to use the exposed ItemLabelFormat property as shown below [this format is used in the mentioned example]:
SeriesMapping mapping = new SeriesMapping();
mapping.SeriesDefinition.ItemLabelFormat = "#Y% #XCAT";

More information about format expressions can be found in our help.
For your scenario a possible solution is:
mapping.SeriesDefinition.ItemLabelFormat = "#SERIESLABEL #Y";

Best wishes,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jara
Top achievements
Rank 1
answered on 12 Oct 2011, 11:44 AM
Thanks
Tags
Chart
Asked by
Jara
Top achievements
Rank 1
Answers by
Sia
Telerik team
Jara
Top achievements
Rank 1
Share this question
or