ScalePoint<X> class final Point scales

Point scales are a variant of band scales with the bandwidth fixed to zero.

Point scales are typically used for scatterplots with an ordinal or categorical dimension.

Inheritance
Implementers

Constructors

ScalePoint({List<X>? domain, List<num>? range})
Constructs a new point scale with the specified domain and range, no padding, no rounding and center alignment. If domain is not specified, it defaults to the empty domain. If range is not specified, it defaults to the unit range [0, 1].

Properties

align num
How any leftover unused space in the range is distributed.
getter/setter pair
bandwidth num
Returns zero.
no setter
domain List<X>
The scale's domain that specifies the input values.
getter/setter pairinherited-getteroverride-setter
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 pairinherited-getteroverride-setter
padding num
The amount of blank space, in terms of multiples of the step, to reserve before the first point and after the last point.
getter/setter pair
range List<num>
The scale's range that specifies the output values.
getter/setter pairoverride
round bool
Whether or not the scale currently rounds the edges of the bands.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
step num
Returns the distance between adjacent points.
no setter
unknown num?
The output value of the scale for unknown input values.
getter/setter pairinherited

Methods

call(X? x) num?
Given a value in the input domain, returns the corresponding point derived from the output range.
override
copy() ScalePoint<X>
Returns an exact copy of this scale.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rangeRound(List<num> range) → void
Sets the scale’s range to the specified two-element list of numbers while also enabling rounding.
toString() String
A string representation of this object.
inherited

Operators

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