I'm representing a line whose value will sometimes (but infrequently) dip below zero.
I'd like to highlight this line segment by turning the trace red for just that value. Is this possible to do? I'm not sure mechanism to use to accomplish this.
PointLineSeries - highlight all samples < 0
Moderator: Queue Moderators
-
- Posts: 183
- Joined: Tue Mar 18, 2014 2:55 pm
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: PointLineSeries - highlight all samples < 0
You can do that with ValueRangePalette coloring of PointLineSeries, SampleDataSeries or FreeformPointLineSeries.
Just set
- series.UsePalette = true
- series.ValueRangePalette.Type = Uniform
- In series.ValueRangePalette.Steps, define two steps. Red step with 0 value, and White step to 10000 or so.
Then the values below 0 are colored with red, and above that with white. You can add more steps in the palette too.
Just set
- series.UsePalette = true
- series.ValueRangePalette.Type = Uniform
- In series.ValueRangePalette.Steps, define two steps. Red step with 0 value, and White step to 10000 or so.
Then the values below 0 are colored with red, and above that with white. You can add more steps in the palette too.
LightningChart Support Team, PT
-
- Posts: 183
- Joined: Tue Mar 18, 2014 2:55 pm
Re: PointLineSeries - highlight all samples < 0
Thanks pasi!