I am using chartDirector in C# .net . I have graphs and included zoom-in and zoom-out functionality. Now in running graph, if person do zoom-in/zoom-out using mouse then is there any way to reset zoom including scroll bar position, length to the default one ?
From my understanding, you already have a chart that can zoom in and zoom out correctly. You would like to have some kind of user interface (such as a push button) that can immediately change the zoom level to "completely zoom out" (that is, all the data are visible).
To do this, you just need to set the ViewPortWidth to 1, and the ViewPortLeft to 0, and then call updateViewPort. The exact code depends on whether you are writing a desktop application (such as Windows Forms or WPF) or web application.
For example, in a desktop application, it may be like: