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.
ScrollingStabilizing and ClipAreas
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ScrollingStabilizing and ClipAreas
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.
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
Re: ScrollingStabilizing and ClipAreas
MarginPixels is already set to 1 for each ClipArea.
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ScrollingStabilizing and ClipAreas
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
Re: ScrollingStabilizing and ClipAreas
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.
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 450 times
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ScrollingStabilizing and ClipAreas
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.
Finding a solution to this may be impossible, I think we will remove ScrollingStabilizing feature.
LightningChart Support Team, PT
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ScrollingStabilizing and ClipAreas
We'll continue investigating tomorrow.
LightningChart Support Team, PT
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ScrollingStabilizing and ClipAreas
Improvement in this is coming in the next assembly pack v.6.4.2, in couple of weeks.
LightningChart Support Team, PT
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ScrollingStabilizing and ClipAreas
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.
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