Hi All,
When i did the Zoom I want to fixed my Scrollbar in this position (like picture) and continous to charting in real time with the same position of Scrollbar it’s possible to did this with Scichart ? because it’s possible with the lib ZedGraph but i don’t know if it’s possible with Scichart !! please i need a response and helps ! Thank you !
Best Regards, Sahar.
- sahar Les asked 9 years ago
- You must login to post comments
Hi Sahar,
Thank you for your video, it helps clarify what you want to achieve. You want to
- Have a scrollbar on XAxis
- When you zoom in, stop auto ranging or scrolling automatically
- When you zoom back out, resume auto ranging or scrolling automatically
First of all, there is nothing in SciChart itself that allows you to do this exact behaviour. However, you can achieve it yourself with a very simple workaround.
How do we do this?
Please see the article How to have a Fixed Scrolling Time-Range on the XAxis that works with Modifiers
- You need to update your VisibleRange when you append new data, with a simple rule:
- If the latest XValue is inside the viewport, update VisibleRange so you scroll 1 point
- else, do not update VisibleRange
This is implemented in the Real Time Ticking Stock Charts example.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 9 years ago
-
Hi Andrew, Thanks a lot for your response, but it's possible to implement this same Scrollbar ? because my application a without Mvvm ? Best regards, Sahar
-
You don't need MVVM. We just use MVVM because its best practices for WPF. To implement a scrollbar in SciChart, you just set SciChartSurface.XAxis.ScrollBar = new SciChartScrollbar(). To update visible range, just set SciChartSurface.XAxis.VisibleRange(). If you want a scrollbar like the Windows scrollbar (e.g. not a SciChartScrollbar), I would not recommend this, because you need two grips (left and right) to define visible range
- You must login to post comments
Hi, but for me i added the two Scrollbar like the picture_1, but i think that i must added your Scrollbar (picture_2)?
you think that i must do the same for you or not?
- sahar Les answered 9 years ago
- You must login to post comments
Please login first to submit.