backgroundColor property

Color backgroundColor
final

Specifies the background color of chart widgets.

Widget build(BuildContext context) {
 return Scaffold(
     body: Center(
       child: SfTheme(
         data: SfThemeData(
           chartThemeData: SfChartThemeData(
             backgroundColor: Colors.blue
           )
         ),
         child: SfCartesianChart()
       ),
     )
  );
}

Implementation

final Color backgroundColor;