Pre loader

Best Practice regarding large datasets and resampling modes

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


I would like to stop the user from trying to load datas that are so large that when zoomed out it becomes confusing. I thought that we could use the none resampling mode but that means that the chart would load all data points and I think that this could affect performance. No matter the resampling mode, eventually the dataset will be so large that if the user zooms out, the chart will display a confusing image.

What is the best practice for this type of situation? I was thinking that perhaps we should limit the zoom based on data size. Perhaps there is a better idea out there?


  • You must to post comments

Hi Ryan,

SciChart ResamplingModes are intended to be lossless, this is why you get a cluttered image when zooming out on a really large dataset, it’s drawing as if all the data is there!

For more information, please see How does SciCharts handle the rendering of a high density of data points?

If you want to smooth the data you will need to filter it yourself to remove data-points. This isn’t something we do within SciChart itself I’m afraid.

I can recommend a technique such as listening to XAxis.VisibleRangeChanged events and loading new data as you zoom in/out. Simple filtering algorithms such as Douglas–Peucker line simplification can give you a nice smooth line for use when zoomed out.

Hope this helps,
Best regards,

  • ryan01
    Thanks for the direction! This is exactly what I needed!
  • Andrew Burnett-Thompson
    No problem, glad to be of help! If you need anything else, just ask, or open a new question. Best regards, Andrew
  • ryan01
    I took a look at the performance Demo. I don’t understand what it is doing. The chart looks exactly the same, but it does not look the same for the dataset that I used. I don’t have the dataset right now… What I found was that, when zoomed out, the chart would look nothing like the actual data. No matter which resampling mode I use, it doesn’t seem to affect anything on the performance demo, unless I use none. Then it is slow as molasses! Thanks!
  • Andrew Burnett-Thompson
    Hi Ryan, could I ask you to submit a support ticket with some screenshots + code samples of what you’re seeing? It would be good to get to the bottom of any issue and it’s hard to do that on the forums (which are best suited to quick question / answer format). Best regards, Andrew
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.