enablePanning property

bool enablePanning
final

Enables or disables the panning.

Panning can be performed on a zoomed axis.

Defaults to false.

late ZoomPanBehavior zoomPanBehavior;

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

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

Implementation

final bool enablePanning;