opacity property

double opacity
final

Opacity of the data label.

The value ranges from 0 to 1.

Defaults to 1

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <SplineSeries<SalesData, num>>[
               SplineSeries<SalesData, num>(
                 dataLabelSettings: DataLabelSettings(
                      isVisible: true,
                      color: Colors.pink,
                      opacity: 0.5),
               ),
             ],
       ));
}

Implementation

final double opacity;