SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components


Dear SciChart Team:

Undo and redo functions are incorrect in my application. It didn’t go back to the previous step. My original curve is shown in the attached figure in Figure 1, then I use zoom in to display part of the curve as shown in Figure 2. After that, use undo to return to the previous step from the partial curve(Figure 3). The final result is shown in Figure 4, which is obviously different from Figure 1.

I call “SciChartSurface.ZoomHistoryManager.Undo()” to achieve this function. After execution, the position of the angle of view and the scale of the canvas are not correct. How do I get back to the previous step correctly?

I have two other questions I would like to ask:
1. How do I get the current range of perspective(max/min of X axis and max/min of Y axis) after many drags and zooms?
2. How do I make the scale of the X axis equal to the scale of the Y axis and zoom in/out it at the same scale?

  • You must to post comments

Hi Johnny,

Thanks for your question.
Please update your project to the current SciChart v5.x. We had a lot of improvements since v4.x and SciChart v4.x is no longer supported.

Also, answering your question:
1) Please also have a take a look at our documentation regarding Axis.VisibleRange property:

2) Such behaviour is not provided out of the box, but it is possible to implement it using Viewportmanager. Please take a look at the corresponding documentation:

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.