Point by point coloring in AreaSeries same as for PointLineSeries

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

GeoffDavis
Posts: 5
Joined: Fri Nov 20, 2020 12:12 am

Point by point coloring in AreaSeries same as for PointLineSeries

Post by GeoffDavis » Fri Dec 04, 2020 5:24 am

Hi

I am using the "CustomLinePointColoringAndShaping" Event in various PointLineSeries and FreeformPointLIneSeries to get a point by point coloring of the various series I create.

Is there a similar event for an Area Series that would allow me to color different sections under the line series with different colors

I want to do the same point by point coloring in an Area as I do for Line Series

Thank you

ArctionKestutis
Posts: 421
Joined: Mon Mar 14, 2016 9:22 am

Re: Point by point coloring in AreaSeries same as for PointLineSeries

Post by ArctionKestutis » Wed Dec 09, 2020 1:24 pm

Hi,

Event CustomLinePointColoringAndShaping handle is not implemented for HighLow- or Area-Series. Primarily it is intended for LINE-SERIES, such as PointLineSeries, FreeformPointLineSeries. In addition, recently it was implemented for Polar View /Series.
AreaSeries is far more than just a line, therefore, requires different approach.
Please note, AreaSeries/HighLowSeries has much more coloring options. It could be colored by value-range palette, could change coloring then exceed/deceed limits, Fill color could be combined from 2 color and an additional pair of ReversedFIll color exist. Please check following chapters from User's Manual:
6.10.1 Fill, line and point styles
6.10.2 Limits
6.10.3 Coloring by value-range palette

Hope this helps.

mat-d
Posts: 3
Joined: Sat Jun 26, 2021 4:27 am

Re: Point by point coloring in AreaSeries same as for PointLineSeries

Post by mat-d » Sat Jun 26, 2021 4:36 am

Hello Kestutis,

I'm trying to solve the same problem.
Although Area and High Low have many coloring options, none of these options seem to enable the point by point coloring that is available in line series.

Point by point can be used to change the color along the X axis, these other methods, file/line/point, LImits, color by value range seem to only enable coloring by y-axis value.

Thanks

Mat

Arction_LasseP
Posts: 122
Joined: Wed Mar 27, 2019 1:05 pm

Re: Point by point coloring in AreaSeries same as for PointLineSeries

Post by Arction_LasseP » Mon Jun 28, 2021 9:14 am

Hello Mat,

As mentioned above, CustomLinePointColoringAndShaping event is intended for PointLineSeries and FreefromPointLineSeries, and there fore does not affect the fill of AreaSeries or HighLowSeries.

The only way to color specific x-axis ranges differently is to use multiple AreaSeries. There are two approaches you can take. First, whenever you need to change the color, start a new AreaSeries. Alternatively, you can have one main AreaSeries which holds all the data points. Then just render additional differently colored AreaSeries on top of it. These series would have the same data points as the main series but only for the area with different color.

Hope this helps.
Best regards,
Lasse