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.

Zooming X+Y without maintaining aspect ratio?

Thread ID:





127870 Dec 14,2016 11:09 AM Dec 15,2016 11:03 AM Xamarin.Forms 1
Tags: SfChart
mark forster
Asked On December 14, 2016 11:09 AM


is it possible to pinch to zoom the Chart without maintaining aspect ratio?

I have the scenario where my data is over a long period but the value changes are small for the section of chart I want to view,



Parthiban Sundaram [Syncfusion]
Replied On December 15, 2016 11:03 AM

Hi Mark,

Thanks for using Syncfusion products.

You can achieve your requirement using ZoomFactor and ZoomPostion in ChartAxis as per below code snippet. 
primaryAxis.ZoomFactor = 0.5; 
primaryAxis.ZoomPosition = 0.5; 
secondaryAxis.ZoomFactor = 0.5; 
secondaryAxis.ZoomPosition = 0.5; 
We have prepared the sample based on your requirement. Please download the sample from following location.

Sample: http://www.syncfusion.com/downloads/support/forum/127870/ze/Sample228378033  
If your requirement is different from this, please update us more details for further assistance

Parthiban S


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.