Possible to set the chart Y-axis range to dynamically fit the visible data as I scroll along the x-axis?

Hi,

Is it possible to do this? If so is there some guidance as to the configuration?

I want to scroll along a zoomed X-axis, and as data becomes visible/not visible, I want the y-axis range to change dynamically so that the visible data fits.


For example, is there an onScroll event and a VisibleSeriesPoints property that exposes the visible series data points? Where I can calculate the min/max values?


Or perhaps something simpler?...would be awesome if there is a setting already out of the box.


1 Reply

GM Gayathri Manickam Syncfusion Team January 19, 2022 02:28 PM UTC

Hi Lorenzo,  
  
We analyzed your query and prepared sample for your requirement to set the Y-Axis range dynamically fit with visible data while scrolling along the x-axis with the help of VisibleRangeChanged event. In this event, you can get visible range of data in the chart based on that you can set y-axis range dynamically. Please find the sample below and let us know if you have any other queries.   
  
 
Regards,  
Gayathri M 


Loader.
Up arrow icon