enableSelectionZooming property

bool enableSelectionZooming
final

Enables or disables the selection zooming.

Selection zooming can be performed by long-press and then dragging.

Defaults to false.

late ZoomPanBehavior zoomPanBehavior;

void initState() {
  zoomPanBehavior = ZoomPanBehavior(
    enableSelectionZooming: true
  );
  super.initState();
}

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

Implementation

final bool enableSelectionZooming;