titleBackgroundColor property
Specifies the background color for title of the chart.
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfTheme(
data: SfThemeData(
chartThemeData: SfChartThemeData(
titleBackgroundColor: Colors.grey[400]
)
),
child: SfCartesianChart(
title: ChartTitle(text: 'Chart'),
)
),
)
);
}
Implementation
final Color titleBackgroundColor;