LIneSeries - Changing Color

2 posts, 0 answers
  1. Randy Minder
    Randy Minder avatar
    20 posts
    Member since:
    Aug 2009

    Posted 10 Dec 2011 Link to this post

    Could someone show me the easier way to change the line color in my line series? I'm using RadChart 2011 Q3. I'd like to see how to do it in XAML.

    Thanks very much.
  2. Petar Marchev
    Petar Marchev avatar
    996 posts

    Posted 12 Dec 2011 Link to this post

    Hello Randy,

    Probably the easiest way to do this is shown below
    this.radChart.SeriesMappings[0].SeriesDefinition.Appearance.Stroke = new SolidColorBrush(Colors.Red);

    In XAML you need to set the Stroke property of the series' appearance, as shown here
      <telerik:SeriesAppearanceSettings Stroke="Red" />

    You can also achieve this using styles. Please read this topic on Styling the Chart Series and take a look at the whole section on Styling And Templates here

    All the best,
    Petar Marchev
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top