Show Deviations (with Color?)

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Arction_LasseP

User avatar
blakeadkins
Posts: 44
Joined: Tue Feb 25, 2014 7:49 pm

Show Deviations (with Color?)

Post by blakeadkins » Tue Mar 11, 2014 3:56 pm

I have a cross section of a 3D scan and I have ideal points and the measured points and I'm trying to graphically show the deviation from ideal (within certain tolerance, green/ medium tolerance, yellow/ outside tolerance, red). I've seen on the forum that using a PointLineSeries to show different colors won't work so I'm curious if there's another way around that. Here's an image of my current state
Image

User avatar
ArctionPasi
Posts: 1366
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: Show Deviations (with Color?)

Post by ArctionPasi » Tue Mar 11, 2014 6:51 pm

Three different approaches come to my mind right now.

1. Changing the curve color can be made with event Image. But it's pretty tricky because the event assumes screen coordinates, and you may have to convert screen coordinates to axis values with axis.CoordToValue method to find out the deviation on that point.

2. Setting another stacked Y axis or chart below this chart, and displaying the deviation value as separate line, and coloring that with ValueRangePalette. Pretty much like in this picture
Palette-colored line
Palette-colored line
palette_colored_line.jpg (126.27 KiB) Viewed 5344 times
X values same than in the cross section line, Y values deviation.

3. Setting a colored point in each line point location. That can be done with SeriesEventMarkers, which is sub-property of PointLineSeries. One marker for each point. Each marker can have unique color.
LightningChart Support Team, PT