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