This is a migrated thread and some comments may be shown as answers.

Custom color for line segment in LineSeries?

2 Answers 162 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Mitchell
Top achievements
Rank 1
Mitchell asked on 03 Jan 2014, 06:21 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 08 Jan 2014, 12:32 PM
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.

Regards,
Pavel R. Pavlov
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 >>
0
Mitchell
Top achievements
Rank 1
answered on 09 Jan 2014, 05:03 PM
That makes sense. Thanks for the answer - Mitch
Tags
ChartView
Asked by
Mitchell
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Mitchell
Top achievements
Rank 1
Share this question
or