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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Zooming X+Y without maintaining aspect ratio?

Thread ID:





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


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 04:03 PM UTC

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.

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