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


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

  2. Velin
    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);

    Hope this will help.

    All the best,
    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