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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

chart autozoom by default

Thread ID:

Created:

Updated:

Platform:

Replies:

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

hi,
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 ?
thanks

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.   
 
Regards, 
Saravanan M 


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.

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