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.
Y axis NaN in SampleDataSeries produces vertical bar
Moderator: Queue Moderators
Y axis NaN in SampleDataSeries produces vertical bar
Last edited by vrmitch on Mon Feb 16, 2015 4:06 pm, edited 1 time in total.
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Y axis NaN in SampleDataLineSeries produces vertical bar
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.
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
Re: Y axis NaN in SampleDataSeries produces vertical bar
Good solution - thanks.