SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
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.