selectedOpacity property

double selectedOpacity
final

Opacity of the selected series or data point.

Default to 1.0.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <BarSeries<SalesData, num>>[
               BarSeries<SalesData, num>(
                 selectionBehavior: SelectionBehavior(
                   selectedOpacity: 0.5,
                 ),
               ),
             ],
       ));
}

Implementation

final double selectedOpacity;