ScaleOrdinal<X, Y> class
Ordinal scales
Unlike continuous scales, ordinal scales have a discrete domain and range.
For example, an ordinal scale might map a set of named categories to a set of colors, or determine the horizontal positions of columns in a column chart.
- Implemented types
-
- Scale<
X, Y>
- Scale<
- Implementers
Constructors
-
ScaleOrdinal.new({List<
X> ? domain, List<Y> ? range}) -
Constructs a new ordinal scale with the specified
domain
andrange
.
Properties
-
domain
↔ List<
X> -
The scale's domain that specifies the input values.
getter/setter pairoverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- implicit ↔ bool
-
Whether or not the scale currently infers domain implicitly from usage.
getter/setter pair
-
range
↔ List<
Y> -
The scale's range that specifies the output values.
getter/setter pairoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unknown ↔ Y?
-
The output value of the scale for unknown input values.
getter/setter pair
Methods
-
call(
X? d) → Y? -
Given a value in the input domain, returns the corresponding value in
the output range.
override
-
copy(
) → ScaleOrdinal< X, Y> -
Returns an exact copy of this ordinal scale.
override
-
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