dataLabelSurfaceColor method
Color
dataLabelSurfaceColor(
- CartesianChartDataLabelPositioned label
)
override
Implementation
@override
Color dataLabelSurfaceColor(CartesianChartDataLabelPositioned label) {
final SfChartThemeData chartThemeData = parent!.chartThemeData!;
final ThemeData themeData = parent!.themeData!;
if (chartThemeData.plotAreaBackgroundColor != Colors.transparent) {
return chartThemeData.plotAreaBackgroundColor;
} else if (chartThemeData.backgroundColor != Colors.transparent) {
return chartThemeData.backgroundColor;
}
return themeData.colorScheme.surface;
}