enable property
Enables or disables the selection.
By enabling this, each data point or series in the chart can be selected.
Defaults to false
.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
series: <BarSeries<SalesData, num>>[
BarSeries<SalesData, num>(
selectionBehavior: SelectionBehavior(
enable: true
),
),
],
));
}
Implementation
final bool enable;