zoomMode property

ZoomMode zoomMode
final

By default, both the x and y-axes in the chart can be zoomed.

It can be changed by setting value to this property.

Defaults to ZoomMode.xy.

Also refer ZoomMode.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          zoomPanBehavior: ZoomPanBehavior(enableSelectionZooming: true, zoomMode: ZoomMode.x),
       ));
}

Implementation

final ZoomMode zoomMode;