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
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