fillPattern
Custom set of fill pattern, for Bar Chart type.
Type | Default |
---|---|
FillPattern Function(OrdinalGroup, OrdinalData, int?)? | FillPattern.solid |
Type | Description | |
---|---|---|
forwardHatch | Defines a pattern of white lines slanting up and to the right above the bar filled with the fill color | |
solid | Defines a simple bar filled with a fill color. This becomes the default pattern |
fillPattern: (group, ordinalData, index) {
if (ordinalData.measure > 8) return FillPattern.forwarHatch;
return FillPattern.solid;
},