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

On Zoom End Get X Axis Start and End Values


I am trying to get the x axis values when a user selections a selection of the chart. Please see the image below. It shows the values during the selection process, but i cant seem to find the values after the callback. Im trying to get the highlights values in the red blocks.


1 Reply

YG Yuvaraj Gajaraj Syncfusion Team March 22, 2023 11:44 AM UTC

Hi Jesse,

Currently, there is no support for getting the interactive tooltip value for the x-axis while performing the selection zooming, but you can get the axis visible range after the selection zooming is performed with the help of the onActualRangeChanged event. We have shared the code snippet and related UG documentation below for your reference.

Code snippet:

onActualRangeChanged: (args) {
if(args.orientation == AxisOrientation.horizontal){
print('visibleMinimum: ${args.visibleMin}');
print('visibleMaximum: ${args.visibleMax}');

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



Live Chat Icon For mobile
Up arrow icon