Y-axis range adaptation problem

I would like to achieve such an effect, if the data is between -5 and 5, the range of the Y axis is displayed from -5 to 5, and if the data exceeds this range, it is displayed according to the maximum and minimum values of the data, is there an example of this?


Image_2258_1703427011333


3 Replies

PS Preethika Selvam Syncfusion Team December 26, 2023 01:31 PM UTC

Hi,


We have analyzed your requirement and achieved your requirement using an ‘onActualRangeChanged’ callback. This callback is triggered when the visible range of an axis is changed, meaning that the values for the minimum, maximum, and interval have changed. You can customize the visible range of an axis using this callback. In this case, the callback is used to specify the axis range. We have shared the user guide documentation and attached a sample below for reference.


Output Screenshot:


UG Link:

https://help.syncfusion.com/flutter/cartesian-charts/callbacks#onactualrangechanged


Please check and get back to us if you require further assistance.


Regards,

Preethika Selvam.


Attachment: fr186018_e8385ae.zip


?? ?? replied to Preethika Selvam December 29, 2023 02:27 AM UTC

I'll try it, thank you very much



PS Preethika Selvam Syncfusion Team December 29, 2023 05:15 AM UTC

Hi,


Most Welcome. Kindly get back to us if you have further queries. We are always happy to assist you.


Regards,

Preethika Selvam.


Loader.
Up arrow icon