SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

1
0

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?

Thanks!

  • You must to post comments
0
0

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,
Andrew

  • ryan01
    Thanks for the direction! This is exactly what I needed!
  • Andrew
    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
    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.