enable property

bool enable
final

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>(
                 selectionSettings: SelectionSettings(
                   enable: true
                 ),
               ),
             ],
       ));
}

Implementation

final bool enable;