We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Undo Zooming

Thread ID:

Created:

Updated:

Platform:

Replies:

127672 Dec 1,2016 12:17 PM Dec 6,2016 02:36 AM Windows Forms 3
loading
Tags: Chart
Swetaketu Majumder
Asked On December 1, 2016 12:17 PM

Hi,

I am using the ZoomType.Selection and ZoomType.MouseWheelScrolling for zooming in on a chart. But when I want to zoom out and click on the buttons visible on both the toolbars along X and Y axes, it does not zoom out the same amount. For example, if the current visible X range is 10 to 200 and I zoom in to 50 to 70, when I zoom out, it does not go directly to 10 to 200. It takes two/three attempts to go back to the original range.

Could you please tell me how I can zoom out the same amount?

Thank you.
Regards,
Swetaketu

Dharanidharan Dharmasivam [Syncfusion]
Replied On December 2, 2016 04:25 AM

Hi Swetaketu, 

Thanks for using Syncfusion product. 
We have analyzed your query. In general, in one click of zoom out button, chart will zoom out with zoom factor of 0.2f. On zoom out, chart will not maintain the same state and also chart will not retain the previous state, current state will be changed with zoom factor of 0.2, this is the current behavior of chart. If you want to reset the chart zoomed to position to initial state, you can use ResetOnDoubleClick property. Kindly find the code snippet below, 
 
Windows Forms: 

this.chart.ResetOnDoubleClick = true; 


We have created sample for your reference. Kindly find the sample from below location, 
  
We would like to know more details on your requirement (behavior for zoom in and zoom out), so that we can provide solution sooner. 

Thanks, 
Dharani. 


Swetaketu Majumder
Replied On December 2, 2016 03:54 PM

Hi Dharani,

Thank you for the response. I have seen this option to enable "reset on double click" but I am afraid it does not solve my problem. This option resets the zoom completely. What I need is to go back from the current zoom state to the last zoom state. 

For example, my complete X-Axis visible range is 0 - 100. I zoom in to 10 - 80 and again to 50 - 70. Now, I want to go back to the last zoomed state i.e. 10 - 80. Double click will take me back to 0 - 100 which is not what I want.

Thanks and Regards,
Swetaketu

Dharanidharan Dharmasivam [Syncfusion]
Replied On December 6, 2016 02:36 AM

Hi Swetaketu, 
  
Thanks for your update. 
  
We have analyzed your query. As of now your requirement can’t be achieved, since zooming behavior is different from your scenario. So we have logged improvement task and for better follow up we have created branch incident (#168656). Kindly follow up with incident(#168656) for more information on the improvement task. 
  
Kindly revert us, if you have concern on this. 
  
Thanks, 
Dharani. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;