selectionBehavior property

  1. @override
SelectionBehavior selectionBehavior
final

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

@override
final SelectionBehavior selectionBehavior;