opacity property
Opacity of the data label.
The value ranges from 0 to 1.
Defaults to 1
.
Widget build(BuildContext context) {
return SfCartesianChart(
series: <SplineSeries<SalesData, num>>[
SplineSeries<SalesData, num>(
dataLabelSettings: DataLabelSettings(
isVisible: true,
opacity: 0.8
),
),
],
);
}
Implementation
final double opacity;