Dart Documentationorson_chartsStandardCategoryColorSource

StandardCategoryColorSource class

A source of colors for a category renderer. Provides a standard implementation of the CategoryColorSource interface.




new StandardCategoryColorSource(List<Color> colors) #

Creates a color source with the specified list of colors.

new StandardCategoryColorSource.singleColor(Color color) #

Creates a color source that contains a single color.


List<Color> colors #


Color getColor(int series, int row, int column) #

Returns a color to be used for an item in a CategoryPlot3D.

docs inherited from CategoryColorSource

Color getLegendColor(int series) #

Returns a color to be used for an item in the chart's legend.

docs inherited from CategoryColorSource

void style(List<Color> colors) #

Applies a set of colors to the source (used when applying a different style to charts).

docs inherited from CategoryColorSource