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 ?
- abolfazl ghanbari asked 5 years ago
- You must login to post comments
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
- Yura Khariton answered 5 years ago
- You must login to post comments
Please login first to submit.