SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
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.
I would like to achieve dynamic loading finely sampled data from db when user zooms in.
For example I would like to display 1 month of data sampled by day (one sample per each day). As user zooms in to day-level, I would like to load data only for visible day but sampled in finer resolution (for example one sample per minute). User could zoom in further to seconds or milliseconds details.
I could probable detect displayed time range and load data with corresponding sampling and switch the dataset bound to the control.
But after that the control will be bound only to visible portion of time interval and user will not be able to zoom out back to coarser level of detail (ie whole month).
Is there a way how to do this?
thanks for quick response. I tried to implement simple version of virtualizing sample. I’m just loading data for visible range + some surroundings before and after the interval, so user could move within data without reloading after each pixel. I’m resampling the range if zoom changes to twice or half.
I’m attaching my quick sample, so anybody could use it as a reference. Sample contains simple data generator of “fractal” sine function.
I could imagine that sample could be easily extended by many ways – for example async loading of data.
I had found SciChart library few days ago and I must say it looks very impressive.
Please login first to submit.