Change line color in custom intervals

2 posts, 0 answers
  1. Alexander
    Alexander avatar
    78 posts
    Member since:
    Apr 2013

    Posted 22 May 2014 Link to this post


    is it possible to change the line color in a RadCartesianChart depending on the DataItem (e.g. for the line segment before the data point)?
    I found an old thread ( where it was stated that such a functionality was planned - however I don't see any evidence that it was implemented...

  2. Petar Marchev
    Petar Marchev avatar
    996 posts

    Posted 26 May 2014 Link to this post

    Hi Alexander,

    The link you provided is for the old RadChart. Your question concerns the new ChartView (this is a set of controls - RadCartesianChart, RadPieChart, RadPolarChart). The new chart does not have such a functionality built in. The line is not drawn with different segments as this will decrease performance. The line is a single Path element and it has a Stroke property.

    We have not planned this feature for the new ChartView control because we are not sure that it would bring value into perceiving data. Can you send us some pictures demonstrating the results you are after so that we see if we should consider such finctionality for a future release. Currently you can use the PointTemplate property and have custom visuals (point marks) in different color depending on the data item.

    Petar Marchev
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top