SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
Hi,
I have medical data displaying every 1s with Date as XAxis and ml/hr as YAxis. I want to control the display to let say, 6hr window in the current display by default whereas zoom-in can go to precisely 1hr and not below that and zoom-out reset to 6hr. How can I achieve this?
FYI, my data retention is for 72hrs.
BR,
Praween K.
Hi Praween,
Have you tried to set VisibleRange for your xAxis? This should give you direct control over what should be displayed by chart. If you want to restrict zoom with modifiers you can use our Minimal/MaximumZoomConstrain:
xAxis.setMinimalZoomConstrain(DateIntervalUtil.fromHours(1));
xAxis.setMaximumZoomConstrain(DateIntervalUtil.fromHours(6));
Is this suitable for your needs?
Best regards,
Yura
Hi Yura,
Is it also possible to change these settings runtime based on some widget event, let say, i want to change the max zoom constrain from 6hr -> 12hr. How will I update the graph view with this API refreshxAxis.setMaximumZoomConstrain(DateIntervalUtil.fromHours(12)) ?
BR,
Praween
Please login first to submit.