Skip to main content

fillColor

Sets the fill color for charts that have fill shapes such as bars and scatters.

TypeDefault
Color? Function(OrdinalGroup, OrdinalData, int?)?null
fillColor: (group, ordinalData, index) {
if (ordinalData.measure > 8) return Colors.red;
return Colors.blue;
},

fillColor_bar fillColor_scatter