How i will get the minimum and the maximum value for visibleMinimum,visibleMaximum on y-axis?

My Code -

SplineAreaSeries<SixtyDayProductGraph, String>(

dataSource: data.sixtyDayGraphModel!.graph!,
borderColor: const Color(0xff2093D7),
borderWidth: 1,
gradient: AppColors.graphGradient,
xValueMapper: (plot, _) =>
plot.dayWiseTimeWithDate,
yValueMapper: (plot, _) => plot.floorPrice,
xAxisName: 'Duration',
yAxisName: 'Total',
enableTooltip: true,
dataLabelMapper: (plot, _) =>
plot.floorPriceString,
dataLabelSettings: const DataLabelSettings(
isVisible: false,
angle: 270,
),
splineType: SplineType.monotonic,
cardinalSplineTension: 0.3,
),

3 Replies

SK Sriram Kiran Senthilkumar Syncfusion Team September 9, 2022 01:57 PM UTC

Hi Sanwarul,


We have checked your query at our end, and we would like to let you know that you can use the onActualRangeChanged callback available in chart to get the minimum, maximum value of chart’s x and y axis. We have also appended the user guide documentation link below for reference.

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


Regards,

Sriram Kiran



SH Sanwarul Haque Sourav replied to Sriram Kiran Senthilkumar September 22, 2022 04:22 AM UTC

Sorry to say ,i failed to call the xValueMapper values on X-axis



SK Sriram Kiran Senthilkumar Syncfusion Team September 23, 2022 09:21 AM UTC

Hi Sanwarul,


We are not clear about your last update, please provide more details, so that we can assist you in a better way.


Regards,

Sriram Kiran


Loader.
Up arrow icon