opacity property

  1. @override
double opacity
final

Opacity of the series.

The value ranges from 0 to 1. It used to control the transparency of the legend icon shape.

Defaults to 1.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <BarSeries<SalesData, num>>[
      BarSeries<SalesData, num>(
        opacity: 0.8
      ),
    ],
  );
}

Implementation

@override
final double opacity;