Dart Documentationorson_chartsXYZColorSource

XYZColorSource abstract class

The interface that must be supported by the color source for an XYZRenderer. A default implementation (StandardXYZColorSource) is provided, but you are free to substitute your own implementation.




abstract Color getColor(int series, int item) #

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

abstract Color getLegendColor(int series) #

Returns the color to use for the specified series.

abstract void style(List<Color> colors) #

Apply the specified colors to the color source. This is used when applying a chart style...the color source should update itself in an appropriate way to utilise the supplied colors.