selectionRectColor property

Color? selectionRectColor
final

Color of the selection zooming rectangle.

It used to change the background color of the selection rectangle.

Defaults to Color.fromRGBO(89, 244, 66, 0.2).

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          zoomPanBehavior: ZoomPanBehavior(
            enableSelectionZooming: true, selectionRectColor: Colors.yellow),
       ));
}

Implementation

final Color? selectionRectColor;