ScaleBand<X> class final Band scales

Band scales are like ordinal scales except the output range is continuous and numeric.

The scale divides the continuous range into uniform bands. Band scales are typically used for bar charts with an ordinal or categorical dimension.

band
Inheritance

Constructors

ScaleBand.new({List<X>? domain, List<num>? range})
Constructs a new band scale with the specified domain and range, no padding, no rounding and center alignment.

Properties

align num
How outer padding is distributed in the range.
getter/setter pairinherited-setteroverride-getter
bandwidth num
Returns zero.
no setterinherited
domain List<X>
The scale's domain that specifies the input values.
getter/setter pairinherited-setteroverride-getter
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
padding num
The scale's paddingInner and paddingOuter.
getter/setter pairoverride
paddingInner num
The proportion of the range that is reserved for blank space between bands.
getter/setter pair
paddingOuter num
The amount of blank space, in terms of multiples of the step, to reserve before the first band and after the last band.
getter/setter pair
range List<num>
The scale's range that specifies the output values.
getter/setter pairinherited-setteroverride-getter
round bool
Whether or not the scale currently rounds the edges of the bands.
getter/setter pairinherited-setteroverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
step num
Returns the distance between adjacent points.
no setterinherited
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 start of the corresponding band derived from the output range.
override
copy() ScaleBand<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.
override
toString() String
A string representation of this object.
inherited

Operators

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