StandardColorGenerator class

Inheritance

Constructors

StandardColorGenerator()
Constructs using default scheme 'brewer.Paired'.
StandardColorGenerator.scheme(String schemeName)

Properties

defaultDisabledSchemeName String
no setterinherited
defaultSchemeName String
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
mainScheme String
The current main scheme name.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemeNames List<String>
Returns a List of scheme names/keys.
no setterinherited

Methods

buildColors<C>(List<C> keys) Map<C, String>
Builds a Map with a color for each provided key from parameter keys.
inherited
buildDisabledColors<C>(List<C> keys) Map<C, String>
Builds a Map with a disabled color for each provided key from parameter keys.
inherited
generateColor(String name, int index, int total) String
Generate a HTML color using the entry index and total elements in the Charts as reference. The name of the Series/Category is supplied for advanced implementations.
inherited
generateDisabledColor(String name, int index, int total) String
Same as generateColor but for disabled element.
inherited
getDefaultDisabledSchemeColors(int size) List<String>
inherited
getDefaultSchemeColors(int size) List<String>
inherited
getDisabledSchemeColors(String schemeName, int size) List<String>
Returns the scheme colors using the schemeName and desired size.
inherited
getSchemeColors(String schemeName, int size) List<String>
Returns the scheme colors using the schemeName and desired size.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited