selectionRectColor property
Color of the selection zooming rectangle.
It used to change the background color of the selection rectangle.
Defaults to null
.
late ZoomPanBehavior zoomPanBehavior;
void initState() {
zoomPanBehavior = ZoomPanBehavior(
enableSelectionZooming: true,
selectionRectColor: Colors.yellow
);
super.initState();
}
Widget build(BuildContext context) {
return SfCartesianChart(
zoomPanBehavior: zoomPanBehavior
);
}
Implementation
final Color? selectionRectColor;