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

Customize SeriesItemLabel

1 Answer 45 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Natália
Top achievements
Rank 1
Natália asked on 27 Aug 2010, 06:18 PM
Hello,

How can I change the font color of the labels of a pie chart.
I want to do in c # code.

Thanks
...

1 Answer, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 01 Sep 2010, 05:14 PM
Hi Natália,

You can use the ISeriesDefinition.Appearance API to change the labels color. Here is some code:
SeriesMapping m1 = new SeriesMapping() { SeriesDefinition = new PieSeriesDefinition() };
m1.SeriesDefinition.Appearance.Foreground = new SolidColorBrush(Colors.Yellow);
RadChart1.SeriesMappings.Add(m1);

Hope this will help.

All the best,
Ryan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Natália
Top achievements
Rank 1
Answers by
Velin
Telerik team
Share this question
or