ScrollingStabilizing and ClipAreas

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

ScrollingStabilizing and ClipAreas

Post by vifani » Thu Feb 26, 2015 4:49 pm

Hi,
in my chart I use ClipAreas to hide invalid data.
When I set x Axis scrollmode to XAxisScrollMode.Scrolling and, for all my PointLineSeries, ScrollingStabilizing = true, hidden data by ClipAreas are shown.
See the attached picture.
cliparesScrolling.png
cliparesScrolling.png (29.37 KiB) Viewed 13129 times

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

Re: ScrollingStabilizing and ClipAreas

Post by ArctionPasi » Thu Feb 26, 2015 8:50 pm

I think you are referring that the clip areas don't cut precisely sharp data transitions. When ScrollingStabilizing is used, the chart has to round the rendering data in integer screen coordinates, preventing data wobbling that occurs with floating point coordinates.

You may want to define marginPixels = 1 to each ClipArea to prevent it, then it clips 1 more pixel from the left and the right.
LightningChart Support Team, PT

vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

Re: ScrollingStabilizing and ClipAreas

Post by vifani » Fri Feb 27, 2015 8:05 am

MarginPixels is already set to 1 for each ClipArea.

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

Re: ScrollingStabilizing and ClipAreas

Post by ArctionPasi » Fri Feb 27, 2015 8:43 pm

Could you please send a VS project for reproducing the problem? We'd appreciate it a lot so we can find a solution in timely manner.
LightningChart Support Team, PT

vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

Re: ScrollingStabilizing and ClipAreas

Post by vifani » Mon Mar 02, 2015 10:31 am

I attached a VS project to reproduce the issue.
You have to click on start button; the problem occurs when the chart start to scroll.
I need to put double.NaN value to Y coord to mark invalid data.
Attachments
TestScrollingArction.zip
(10.94 KiB) Downloaded 449 times

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

Re: ScrollingStabilizing and ClipAreas

Post by ArctionPasi » Mon Mar 02, 2015 1:51 pm

Thanks for sending the VS project. I was able to reproduce the issue.

Finding a solution to this may be impossible, I think we will remove ScrollingStabilizing feature.
LightningChart Support Team, PT

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

Re: ScrollingStabilizing and ClipAreas

Post by ArctionPasi » Mon Mar 02, 2015 4:02 pm

We'll continue investigating tomorrow.
LightningChart Support Team, PT

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

Re: ScrollingStabilizing and ClipAreas

Post by ArctionPasi » Fri Mar 06, 2015 3:12 pm

Improvement in this is coming in the next assembly pack v.6.4.2, in couple of weeks.
LightningChart Support Team, PT

vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

Re: ScrollingStabilizing and ClipAreas

Post by vifani » Mon Mar 09, 2015 8:25 am

Thanks :D

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

Re: ScrollingStabilizing and ClipAreas

Post by ArctionPasi » Thu Mar 19, 2015 5:22 pm

This has been improved in 6.4.2 assembly pack, released today.

You still may want to add some more margins to it because you have data spikes in the edge the area, and half of the width has to be taken into account. ScrollingStabilizing uses integer rounding to stabilize the data curve while scrolling and it yields into additional +/- 1 pixel error there.
LightningChart Support Team, PT

Post Reply