TChart has a build in function, UndoZoom, which resets the zoom of the graph to its original value.
Whilst this is very useful, it also resets the graph so the minimum and maximum axes values (the bottom and left axes in my case) are displayed.
The reason this is a problem is I have graph scrolling enabled, so I want the user to be able to scroll and then reset the zoom, without where they have scrolled to being affected.
Here's my procedure:
procedure ResetZoomClick(Sender: TObject); begin chtGraph.UndoZoom; end;
As you can see it's very barebones as the function takes care of most of the work!
How would I go about modifying it to do the above?