Dart Documentationorson_chartsFixedColorScale

FixedColorScale class

A fixed color scale is a special implementation of a ColorScale that returns the same color for all values.

Implements

ColorScale

Constructors

new FixedColorScale(Color color) #

Creates a new FixedColorScale instance with the specified color.

Properties

Color color #

The color.

Range range #

The value range (ignored in this implementation).

Methods

Color valueToColor(num value) #

Returns the color specified in the constructor for all values.