Skip to main content

fillPattern

Custom set of fill pattern, for Bar Chart type.

TypeDefault
FillPattern Function(OrdinalGroup, OrdinalData, int?)?FillPattern.solid
TypeDescription
forwardHatchDefines a pattern of white lines slanting up and to the right above the bar filled with the fill colorfillPattern_forwardHatch
solidDefines a simple bar filled with a fill color. This becomes the default patternfillPattern_solid

fillPattern: (group, ordinalData, index) {
if (ordinalData.measure > 8) return FillPattern.forwarHatch;
return FillPattern.solid;
},

fillPattern