BandScale<T> class

A band scale maps discrete domain values to a continuous range with bands.

Constructors

BandScale({List<T>? domain, List<double>? range, double paddingInner = 0, double paddingOuter = 0, double align = 0.5, bool round = false})
Creates a band scale with the given parameters.

Properties

align ↔ double
The alignment of bands within the range (0 to 1).
getter/setter pair
bandwidth → double
Returns the bandwidth (width of each band).
no setter
domain ↔ List<T>
The discrete domain values.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
padding ← double
Sets both inner and outer padding.
no getter
paddingInner ↔ double
The inner padding between bands (0 to 1).
getter/setter pair
paddingOuter ↔ double
The outer padding on the edges (0 to 1).
getter/setter pair
range ↔ List<double>
The continuous output range.
getter/setter pair
round ↔ bool
Whether to round output values.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
step → double
Returns the step between band starts.
no setter

Methods

call(T value) → double
Returns the start position of the band for the given value.
copy() → BandScale<T>
Creates a copy of this scale.
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