selectionRectColor property
Specifies the color of an rectangle which is used for selection zooming.
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfTheme(
data: SfThemeData(
chartThemeData: SfChartThemeData(
selectionRectColor: Colors.red[300]
)
),
child: SfCartesianChart(
zoomPanBehavior: ZoomPanBehavior(
enableSelectionZooming: true
),
series: <ChartSeries<Sample,num>>[
LineSeries(
dataSource: chartData,
xValueMapper: (Sample data, _) => data.x,
yValueMapper: (Sample data, _) => data.y
)
],
)
),
)
);
}
Implementation
final Color selectionRectColor;