BucketingAxisSpec class

A numeric AxisSpec that positions all values beneath a certain threshold into a reserved space on the axis range. The label for the bucket line will be drawn in the middle of the bucket range, rather than aligned with the gridline for that value's position on the scale.

An example illustration of a bucketing measure axis on a point chart follows. In this case, values such as "6%" and "3%" are drawn in the bucket of the axis, since they are less than the threshold value of 10%.

100% ┠───────────────────────── ┃ * ┃ * 50% ┠──────*────────────────── ┃ ┠───────────────────────── < 10% ┃ * * ┗┯━━━━━━━━━━┯━━━━━━━━━━━┯━ 0 50 100

This axis will format numbers as percents by default.

Inheritance
Annotations
  • @immutable

Constructors

BucketingAxisSpec({RenderSpec<num>? renderSpec, NumericTickProviderSpec? tickProviderSpec, NumericTickFormatterSpec? tickFormatterSpec, bool? showAxisLine, bool? showBucket, num? threshold, NumericExtents? viewport})
Creates a NumericAxisSpec that is specialized for percentage data.

Properties

hashCode int
The hash code for this object.
no setteroverride
renderSpec RenderSpec<num>?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleSpec ScaleSpec<num>?
finalinherited
showAxisLine bool?
finalinherited
showBucket bool
Whether or not measure values bucketed below the threshold should be visible on the chart, or collapsed.
final
threshold num?
All values smaller than the threshold will be bucketed into the same position in the reserved space on the axis.
final
tickFormatterSpec TickFormatterSpec<num>?
finalinherited
tickProviderSpec TickProviderSpec<num>?
finalinherited
viewport NumericExtents?
Sets viewport for this Axis.
finalinherited

Methods

configure(Axis<num> axis, ChartContext context, GraphicsFactory graphicsFactory) → void
override
createAxis() → BucketingNumericAxis
Creates an appropriately typed Axis.
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.
override