Palettes class final
Pre-built color palettes for the viz catalog.
LineChart and BarChart cycle their palette across series / stacked
segments. The default is the theme-derived "semantic" palette
(primary/info/warning/success/error) — useful when each series has
inherent meaning. For arbitrary categorical data where colors are
just labels, prefer categorical, a hue-distinct ANSI 16 sequence
ordered for telling categories apart. It still includes yellow, green,
and red, the default theme's warning, success, and error colors.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
-
categorical
→ const List<
Color> - Six hue-distinct ANSI colors (cyan, yellow, green, magenta, blue, red) for stacked bars and multi-series charts where segments are just categories: qualitative, not sequential.