Custom color for line segment in LineSeries?

3 posts, 1 answers
  1. Mitchell
    Mitchell avatar
    45 posts
    Member since:
    Mar 2013

    Posted 03 Jan 2014 Link to this post

    Is it possible to set the color of a line segment for a specific point?  This is basically the same functionality where you'd set the color of a particular column in a column chart, but in this case you have a line chart (with no point markers) & so want to set the line segment either to/from that point.

    Thanks - Mitch

  2. Answer
    Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1182 posts

    Posted 08 Jan 2014 Link to this post

    Hi Mitch,

    I assume that when you say "column chart" you actually mean RadCartesianChart with BarSeries. Please note that for visualizing each bar of the series, the RadCartesianChart creates different border component hence changing its color is possible. However, using the LineSeries is different. In this case the RadCartesianChart creates only one Path component. This means that only one color per series can be set.

    However, you can achieve your requirement by creating different series for the different segments and apply different colors to them.

    I hope this information is helpful.

    Pavel R. Pavlov
    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
  4. Mitchell
    Mitchell avatar
    45 posts
    Member since:
    Mar 2013

    Posted 09 Jan 2014 Link to this post

    That makes sense. Thanks for the answer - Mitch
Back to Top