Customize SeriesItemLabel

2 posts, 0 answers
  1. Natália
    Natália avatar
    36 posts
    Member since:
    Jun 2010

    Posted 27 Aug 2010 Link to this post

    Hello,

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

    Thanks
    ...
  2. Velin
    Admin
    Velin avatar
    391 posts

    Posted 01 Sep 2010 Link to this post

    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
Back to Top