anchorRangeToVisiblePoints property Null safety

bool anchorRangeToVisiblePoints
final

Determines the value axis range, based on the visible data points or based on the overall data points available in chart.

By default, value axis range will be calculated automatically based on the visible data points on dynamic changes. The visible data points are changed on performing interactions like pinch zooming, selection zooming, panning and also on specifying visibleMinimum and visibleMaximum values.

To toggle this functionality, this property can be used. i.e. on setting false to this property, value axis range will be calculated based on all the data points in chart irrespective of visible points.

Note: This is applicable only to the value axis and not for other axis.

Defaults to true

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryYAxis: NumericAxis(anchorRangeToVisiblePoints: false),
       ));
}

Implementation

final bool anchorRangeToVisiblePoints;