palette property

List<Color> palette
final

Color palette for chart series. If the series color is not specified, then the series will be rendered with appropriate palette color. Ten colors are available by default.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           palette: <Color>[Colors.red, Colors.green]
       ));
}

Implementation

final List palette