zoomPanBehavior property
Customizes the zooming and panning settings.
ZoomPanBehavior _zoomPanBehavior;
@override
void initState() {
_zoomPanBehavior = ZoomPanBehavior( enablePanning: true);
super.initState();
}
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
zoomPanBehavior: _zoomPanBehavior
)
);
}
Implementation
final ZoomPanBehavior zoomPanBehavior;