SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
I have a real-time chart that already drawn.
Is there a method that scrolls programmatically ?
If there is no such method, how i can do this ?
Hi Abolfazl Ghanbari,
By default our modifiers use API provided by axis to scroll chart:
if you want to scroll by some amount of pixels you can use scroll():
xAxis.scroll(10, ClipMode.None);
or you can operate with VisibleRange directly if you want to show some specific range of points:
xAxis.setVisibleRange(newRange);
// or if you want to animate change
xAxis.animateVisibleRangeTo(newRange, 100);
We use second approach in our realtime examples.
Hope this will help you!
Best regards,
Yura
Please login first to submit.