Pre loader

Line Disappearing When Using NaN's

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Hi, I am currently doing MVVM development with SciChart. Previously I was using thousands of LineRenderableSeriesViewModel to represent vertical lines along a profile. I noticed that this may be the cause for a slow-down, so I have attempted to merge all the LineRenderableSeriesViewModels into one view model, using double.NaN’s in between vertical lines to get gaps. This works fine, except if the first point is off-screen then everything else disappears. I am currently using the VisualXcceleratorEngine in my surface. The screenshots show what happens if I pan to the right a little bit and the first point goes off-screen. One thing I thought it was at first was the stationing was not monotonically increasing, but I have made it that way and it didn’t fix the problem. Tips would be appreciated.

Version
8.5.0.28160
Images
  • You must to post comments
1
0

I figured out a solution. The data series DataDistributionCalculator was erroneously settings IsSortedAscending to true when there were NaN’s in the data series. I overrode the data distribution calculator to fix the problem, using this article: https://www.scichart.com/documentation/win/current/webframe.html#DataSeries%20DataDistributionCalculator.html

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.