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

chart autozoom by default

Thread ID:





146081 Jul 18,2019 09:25 PM UTC Jul 19,2019 09:08 AM UTC Xamarin.iOS 1
Tags: SfChart
Asked On July 18, 2019 09:25 PM UTC

if i double tap i can zoom.
how can i do this by code in order to have the same zoom by default without double tap?
i have XXX points in x axis and i want to zoom in order to see just last 10 and i want be able to scroll in order to see the previous ones.
is it possible ?

Saravanan Madheswaran [Syncfusion]
Replied On July 19, 2019 09:08 AM UTC

Hi Luca, 
We have achieved your requirement by using the AutoScrollingDelta feature which is available in ChartAxis. We have prepared a simple sample for your requirement and it can be downloaded from the below link. 
Code snippet[C#]: 
SFCategoryAxis primaryAxis = new SFCategoryAxis(); 
primaryAxis.AutoScrollingDelta = 10; 
primaryAxis.AutoScrollingMode = ChartAutoScrollingMode.End; 
chart.PrimaryAxis = primaryAxis; 
Please get back to us for further assistance.   
Saravanan M 


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