viewxy - change NaN visual representation

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

viewxy - change NaN visual representation

Post by greggorob64 » Fri Apr 29, 2016 3:58 pm

Howdy. I have a chart, shown below

Image

Note the yellow giant rectangle on the left-hand side. After some digging, I figured out that those are float.NaN values. Is it possible to have those points not drawn at all, instead of the giant rectangle it shows as?

Thanks!

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

Re: viewxy - change NaN visual representation

Post by ArctionPasi » Fri Apr 29, 2016 8:59 pm

Currently it's not possible built, but coming soon.

See this topic http://www.arction.com/forum/viewtopic. ... reas#p2969
LightningChart Support Team, PT

fredd41
Posts: 113
Joined: Fri Sep 05, 2014 6:46 pm

Re: viewxy - change NaN visual representation

Post by fredd41 » Mon May 02, 2016 11:46 am

find & replace

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

Re: viewxy - change NaN visual representation

Post by greggorob64 » Mon May 02, 2016 1:29 pm

ArctionPasi wrote:Currently it's not possible built, but coming soon.

See this topic http://www.arction.com/forum/viewtopic. ... reas#p2969
That's cool, I'm alright with waiting. As a workaround, what would you recommend to use when one or more series are missing data? I can just zero them out, but that would be innacurate...

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

Re: viewxy - change NaN visual representation

Post by greggorob64 » Mon May 02, 2016 1:29 pm

@Fredd, i'm not sure what you mean

fredd41
Posts: 113
Joined: Fri Sep 05, 2014 6:46 pm

Re: viewxy - change NaN visual representation

Post by fredd41 » Mon May 02, 2016 3:12 pm

you can clip data:

find nan values

SampleDataSeries.SetClipAreas

find min and max (without nan)

y.setrange(min,max)