When sampling real-time data (line charts using PointLineSeries) I need to be able to highlight values that are above and below a tolerance band in red.
I have tried populating two separate PointLineSeries, one coloured red and one normal line colour, but this does not work because each out of tolerance section is always connected to the previous one and not shown in isolation.
What is the best way to achieve this using LightningChart in a way that can cope with many real-time plots on a single screen?
Out of tolerance band display on PointLineSeries
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Out of tolerance band display on PointLineSeries
Version 5.1 came with ValueRange-palette coloring of line series, so definitely that would be the easiest approach. And also approach that give the best performance. See PointLineSeries.ValueRangePalette and PointLineSeries.UsePalette properties. In the ValueRangePalette, you can define the out-of-tolerance levels(or in fact, maximum level with that color).
And take a look at "Line, palette coloring" example. Set Uniform coloring.
And take a look at "Line, palette coloring" example. Set Uniform coloring.
LightningChart Support Team, PT
Re: Out of tolerance band display on PointLineSeries
Thank you for the quick response.
I also need to be able to change the levels dynamically whilst writing data. The level needs to be controllable so that it will change for a particular point being written to the PointLineSeries.. Points before the change should keep the previous levels and points after use the new levels.
Is this sort of control possible?
I also need to be able to change the levels dynamically whilst writing data. The level needs to be controllable so that it will change for a particular point being written to the PointLineSeries.. Points before the change should keep the previous levels and points after use the new levels.
Is this sort of control possible?
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Out of tolerance band display on PointLineSeries
Using event-driven line shaping/color method, you can accomplish it. It is more complex than palette-coloring though, and you must be ready to respond to this event when ever chart raises the event, and give colors for the X range that the chart supplies in the event. See the "Line, event-based coloring" example.
LightningChart Support Team, PT
Re: Out of tolerance band display on PointLineSeries
If I implement this event-driven line in real time inside my real time multi-channel chart. Would it be too complex to render?
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Out of tolerance band display on PointLineSeries
Your app will perform just fine. The overhead is not that significant, but of course depends on how fast event handler you write.
LightningChart Support Team, PT