backgroundColor property

Color? backgroundColor
final

Background color of the chart.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           backgroundColor: Colors.blue
       )
   );
}

Implementation

final Color? backgroundColor;