maximumZoomLevel property

double maximumZoomLevel
final

Maximum zoom level.

Zooming will be stopped after reached this value and ranges from 0 to 1.

Defaults to null.

late ZoomPanBehavior zoomPanBehavior;

void initState() {
  zoomPanBehavior = ZoomPanBehavior(
    maximumZoomLevel: 0.8
  );
  super.initState();
}

Widget build(BuildContext context) {
  return SfCartesianChart(
    zoomPanBehavior: zoomPanBehavior
  );
}

Implementation

final double maximumZoomLevel;