BarPoint class

One bar. Stored as a ChartPoint whose y is toY, so trackball snapping, gap handling, and x/y extent tracking work unchanged.

Inheritance

Constructors

BarPoint(double x, double toY, {double fromY = 0, BarStyle? style, List<BarStackSegment> stack = const [], BarBackground? background})
const
BarPoint.dateTime(DateTime x, double toY, {double fromY = 0, BarStyle? style, List<BarStackSegment> stack = const [], BarBackground? background})
BarPoint.gap(double x)
No bar at this x (keeps slots addressable for grouped charts).
const

Properties

background BarBackground?
Passive bar painted behind this one; widens yExtent so the track is always fully in range.
final
fromY double
The bar's base (default 0).
final
hashCode int
The hash code for this object.
no setteroverride
isGap bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack List<BarStackSegment>
Colored slices of a stacked bar; empty for a plain bar.
final
style BarStyle?
Per-datum override of the series-level BarStyle, merged field-by-field.
final
toY double
The bar's top; identical to y. Non-null by construction except for BarPoint.gap.
no setter
x double
Position along the x axis, in that axis's domain values — epoch milliseconds for a DateTimeAxis.
finalinherited
xAsDateTime DateTime
no setterinherited
y double?
Value along the y axis, or null for a gap.
finalinherited
yExtent → (double, double)?
The y span this datum occupies, for axis auto-ranging; null = gap. A plain point occupies (y, y); range-like subclasses (e.g. bars) override.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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