colorFn property

AccessorFn<Color>? colorFn
final

colorFn returns the rendered stroke color for a given data value.

If this is not provided, then seriesColor will be used for every datum.

If neither are provided, then the chart will insert colors for each series on the chart using a mapping function.

Implementation

final AccessorFn<Color>? colorFn;