onZoomStart property
final
Occurs when zooming action begins. You can customize the zoom factor and zoom position of an axis. Here, you can get the axis, current zoom factor, current zoom position, previous zoom factor, and previous zoom position.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
zoomPanBehavior: ZoomPanBehavior(enableSelectionZooming: true),
onZoomStart: (ZoomingArgs args) => zoom(args),
));
}
dynamic zoom(ZoomingArgs args) {
args.currentZoomFactor = 0.2;
}
Implementation
final ChartZoomingCallback onZoomStart