Y axis NaN in SampleDataSeries produces vertical bar

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
User avatar
vrmitch
Posts: 21
Joined: Thu Oct 09, 2014 6:19 pm

Y axis NaN in SampleDataSeries produces vertical bar

Post by vrmitch » Mon Feb 16, 2015 4:01 pm

When a Y value in a SampleDataSeries in a ViewXY is float.NaN, a vertical bar is rendered. Is this intentional behavior?

In the meantime to prevent the vertical bar I've programmatically forced values to float.PositiveInfinity, which simply doesn't render anything at that point.

I need to support this possibility since our software allows the user to define a math function that will be rendered as a trace.
Last edited by vrmitch on Mon Feb 16, 2015 4:06 pm, edited 1 time in total.

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

Re: Y axis NaN in SampleDataLineSeries produces vertical bar

Post by ArctionPasi » Mon Feb 16, 2015 4:04 pm

Hi Mitch,

don't use NaNs or Infs in the series. If you have to break the line with NaN, spawn a new series, or use series.ClipAreas to mask off invalid data intervals.
LightningChart Support Team, PT

User avatar
vrmitch
Posts: 21
Joined: Thu Oct 09, 2014 6:19 pm

Re: Y axis NaN in SampleDataSeries produces vertical bar

Post by vrmitch » Mon Feb 16, 2015 4:34 pm

Good solution - thanks.

Post Reply