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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Linear Zoom on SfChart

Thread ID:





145074 Jun 5,2019 11:54 AM UTC Jun 6,2019 01:02 PM UTC WPF 3
Tags: SfChart
Asked On June 5, 2019 11:56 AM UTC

I am using ChartZoomPanBehavior on SfChart control and allowed zooming with scroll wheel. The scrolling affects both X and Y axis and it is relative to cursor position.
My dataset resolution is very high and so I need to zoom very far to see the details. 
After using the rectangular zoom with left click and then using the scroll wheel, the zoom changes by almost nothing.
The result is very frustrating as you have to scroll a lot to zoom for just a bit.
After hooking up the ZoomChanging event on the SfChart control, I have found out that the ZoomFactor changes on a curve like this:

So my goal is to change the curve so it looks like linear function.
I know that I need to change the Axis ZoomFactor by some constant value every scroll, but what is the relation with ZoomPosition? 
I cannot seem to synchronize the linearity of ZoomFactor with ZoomPosition.

Muneesh Kumar G [Syncfusion]
Replied On June 6, 2019 09:04 AM UTC

Hi Daniel, 
We have analyzed your query and we would like to inform you that ZoomPosition defines the center position of zooming that changes range based on ZoomPosition value. If you want to customize the zooming position, change the ZoomPosition value. 
Please let us know if you have any other queries.  
Muneesh Kumar G     

Replied On June 6, 2019 12:58 PM UTC

Thank you.

Muneesh Kumar G [Syncfusion]
Replied On June 6, 2019 01:02 PM UTC

Hi Daniel, 
Please let us know if you need any further assistance. 
Muneesh Kumar G.  


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon