enableMultiSelection property
Enables or disables the multiple data points or series selection.
Defaults to false
.
SelectionBehavior _selectionBehavior;
void initState() {
_selectionBehavior = SelectionBehavior(enable: true);
super.initState();
}
Widget build(BuildContext context) {
return Container(
child: SfCircularChart(
enableMultiSelection: true,
series: <PieSeries<ChartData, String>>[
PieSeries<ChartData, String>(
selectionBehavior: _selectionBehavior
),
],
)
);
}
Implementation
final bool enableMultiSelection;