Dart Documentationorson_chartsStandardColorSource

StandardColorSource class

A source of colors for the PiePlot3D. A standard implementation of the ColorSource interface.

Implements

ColorSource

Constructors

new StandardColorSource() #

Creates a new instance with default colors.

new StandardColorSource.withColors(List<Color> standardColors) #

Creates a new instance with the specified default color.

Properties

DefaultKeyedValues<Color> colors #

Storage for the colors assigned to keys.

List<Color> standardColors #

An array of standard colors from which a color will be assigned if there is not one already stored for a given key.

Methods

Color getColor(Comparable key) #

Returns a color corresponding to the specified key.

docs inherited from ColorSource

void setColor(Comparable key, Color color) #

Sets the color that corresponds to the specified key.

docs inherited from ColorSource

void style(List<Color> colors) #

Applies a new list of colors to the color source in order to update it.

docs inherited from ColorSource