Dart Documentationorson_chartsStandardXYZColorSource

StandardXYZColorSource class

A default implementation of the XYZColorSource interface.

Implements

XYZColorSource

Constructors

new StandardXYZColorSource() #

Creates a new color source using Colors.getDefaultColors().

new StandardXYZColorSource.withColors(List<Color> colors) #

Creates a new color source using the supplied colors.

Methods

Color getColor(int series, int item) #

Returns the color to use for the specified item in a series.

docs inherited from XYZColorSource

Color getLegendColor(int series) #

Returns the color to use for the specified series.

docs inherited from XYZColorSource

void style(List<Color> colors) #

Replaces the source colors with the supplied colors.