Multi line Radchart with different pointmark fill colors

2 posts, 0 answers
  1. Prakash
    Prakash avatar
    7 posts
    Member since:
    Nov 2013

    Posted 07 Dec 2013 Link to this post

    Hi in my wpf application i want to plot two line chart..

    and my requirement is i want to show each point in line pointmarker in different color.

    i achived this for single line chart, when i try for two lines, both taking the same point mark fill color..

    how to resolve this problem.. i am using item series mapping... 
  2. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 11 Dec 2013 Link to this post

    Hello Prakash,

    You can change the color of your series pointmarks like this for example:
    firstSeriesMapping.SeriesDefinition = new LineSeriesDefinition() { ShowPointMarks = true};
    firstSeriesMapping.SeriesDefinition.Appearance.PointMark.Fill = new SolidColorBrush(Colors.Blue);
    firstSeriesMapping.ItemMappings.Add(new ItemMapping("Title", DataPointMember.XCategory));
    firstSeriesMapping.ItemMappings.Add(new ItemMapping("Value", DataPointMember.YValue));

    and apply the same approach respectively for your other series.

    More information on how to style the pointmarks can be found here:
    http://www.telerik.com/help/silverlight/radchart-styling-and-appearance-styling-point-marks.html

    Hope this helps.

    Regards,
    Peshito
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top