SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
Hi,
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,
Petr
Hi Andrew,
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.
Thanks,
Petr
Hi, to further clarify, we noticed that Scichart automatically scales as per the values and the height of the smartphone screen. We would like to control it a bit more like “traditional” EEG charts which can show amplitude at 7Uv/mm or 20Uv/mm or 200Uv/mm or even 1000Uv/mm. Can Scichart help us with this? dr sturm ophthalmologist
Please login first to submit.