enableMultiSelection property
Enables or disables the multiple data points or series selection.
Defaults to false
.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
enableMultiSelection: true,
series: <BarSeries<SalesData, num>>[
BarSeries<SalesData, num>(
selectionSettings: SelectionSettings(
selectedColor: Colors.red,
unselectedColor: Colors.grey
),
),
],
));
}
Implementation
final bool enableMultiSelection;