StandardColorGenerator class
- Inheritance
-
- Object
- ColorGenerator
- SchemeColorGenerator
- StandardColorGenerator
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
andtotal
elements in the Charts as reference. Thename
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 desiredsize
.inherited -
getSchemeColors(
String schemeName, int size) → List< String> -
Returns the scheme colors using the
schemeName
and desiredsize
.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
Constants
-
standardSchemes
→ const Map<
String, List< String> > - ColorBrewer: https://github.com/axismaps/colorbrewer/ Apache License 2.0: https://github.com/axismaps/colorbrewer/blob/master/LICENCE.txt