Vertical lines disappear when scrolling or zooming

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
Igor
Posts: 67
Joined: Mon Sep 28, 2015 1:14 pm

Vertical lines disappear when scrolling or zooming

Post by Igor » Tue Mar 22, 2016 2:18 pm

Hello Pasi,

the data we display in the LC sometimes contains points with an invalid y-value. In the chart we would like to mark these points with a vertical line.
When a y-value is invalid, we replace the actual value by a double.NaN. This has the effect that the chart draws a vertical line, which is the desired behaviour, but unfortunately the line sometimes disappears or flickers, e.g. when zoomin or scrolling in realtime mode.

Is the vertical line for NaN-values a feature at all? Or did we exploit a bug :-)? How can we make it visible all the time, regardless of the zooming factor or scrolling?

I made two screenshots that show the behavior (the series contains a NaN every hundred points or so).
some lines missing after zooming out.png
some lines missing after zooming out.png (23.84 KiB) Viewed 5902 times
all lines visible.png
all lines visible.png (22.54 KiB) Viewed 5902 times

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

Re: Vertical lines disappear when scrolling or zooming

Post by ArctionPasi » Tue Mar 22, 2016 2:42 pm

NaNs are not supported currently in any series. Do not use them to break data. Use ClipAreas or spawn new series after the break.

Internal NaN breaking is scheduled to this year.
LightningChart Support Team, PT

Post Reply