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

chart autozoom by default

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

1 Reply

SM Saravanan Madheswaran Syncfusion Team 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 


Loader.
Live Chat Icon For mobile
Up arrow icon