BandScale<T> class
A band scale for categorical/ordinal data.
Band scales divide the range into uniform bands, one for each domain value.
- Inheritance
- Available extensions
Constructors
Properties
- align → double
-
Alignment of bands within the range (0.0 to 1.0).
final
- bandwidth → double
-
The width of each band.
no setter
- domain → (T, T)
-
The input domain (data space) as (min, max).
no setteroverride
-
domainValues
→ List<
T> -
The full list of domain values.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInverted → bool
-
Whether this scale is inverted (range end < range start).
no setterinherited
- paddingInner → double
-
Padding between bands (0.0 to 1.0).
final
- paddingOuter → double
-
Padding at the edges (0.0 to 1.0).
final
- range → (double, double)
-
The output range (screen space) as (start, end).
no setteroverride
- rangeExtent → double
-
The length of the range.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- step → double
-
The step size between band starts.
no setter
Methods
-
axis(
{ChartPosition position = ChartPosition.bottom}) → AxisBuilder< T> -
Available on Scale<
Creates an axis builder for this scale.T> , provided by the ScaleAxisExtension extension -
copyWithDomain(
T min, T max) → Scale< T> -
Creates a copy of this scale with a new domain.
override
-
copyWithRange(
double start, double end) → Scale< T> -
Creates a copy of this scale with a new range.
override
-
invert(
double value) → T -
Inverse mapping from range value to domain value.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scale(
T value) → double -
Maps a domain value to a range value.
override
-
scaleCenter(
T value) → double - Returns the center position of the band for a value.
-
tickFormatter(
{int? precision}) → String Function(T) -
Returns a tick formatter function for this scale.
override
-
ticks(
{int? count}) → List< T> -
Returns nicely-rounded tick values for this scale.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
withDomainList(
List< T> newDomain) → BandScale<T> - Creates a new band scale with the given domain list.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited