selectedColor property
Color of the selected data points or series.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
series: <BarSeries<SalesData, num>>[
BarSeries<SalesData, num>(
selectionSettings: SelectionSettings(
selectedColor: Colors.red
),
),
],
));
}
Implementation
final Color? selectedColor;