backgroundColor property
Background color of the chart.
Defaults to Colors.transparent
.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
backgroundColor: Colors.blue
)
);
}
Implementation
final Color? backgroundColor;