dataLabelBackgroundColor property
Specifies the background color for data labels.
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfTheme(
data: SfThemeData(
sparkChartThemeData: SfSparkChartThemeData(
dataLabelBackgroundColor: Colors.red
)
),
child: SfSparkLineChart(),
),
)
);
}
Implementation
final Color? dataLabelBackgroundColor;