VisibleAxisRange class

Derives the range from the data inside the visible window, so the axis rescales while scrolling instead of growing monotonically with everything ever loaded.

Falls back to the whole-store extent when the window contains no data, so an axis is never left rangeless. (A null AxisRangeContext.visibleX takes the same fallback, but on the render path the y axis always sees a non-null window — even an empty chart synthesises one — so that branch is only reachable from contexts constructed outside layout.)

Inheritance

Constructors

VisibleAxisRange({double margin = 0, RangePadding padding = const RangePadding.fraction(0.05)})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
margin double
Extends the visible window symmetrically by this fraction of its span before the extent is taken.
final
padding RangePadding
Headroom applied to the result, as for AutoAxisRange.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveScalar(AxisRangeContext context) ScalarRange
Resolves to a scalar range for this frame.
override
toString() String
A string representation of this object.
inherited

Operators

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