selectionBehavior property
Customizes the data points or series on selection.
Widget build(BuildContext context) {
return SfCartesianChart(
series: <BarSeries<SalesData, num>>[
BarSeries<SalesData, num>(
selectionBehavior: SelectionBehavior(
enable:true
),
),
],
);
}
Implementation
final SelectionBehavior? selectionBehavior;