ChartPoint class final
One (x, y) sample in a chart series, with an optional label (decision
D4).
A point is the backing shape for scatter series and any chart that places
data in a two-dimensional value space (rather than a category → value map).
It holds only numbers and a string, so it lives under elements/chart/data/
alongside ChartSeries — the chart owns its data shapes, they are not a
cross-layer currency in core.
Two points are equal when x, y, and label all match, which keeps frame caching honest (identical data → identical geometry → cacheable frames).
const ChartPoint(x: 12, y: 4.5, label: 'Q1')
- Annotations
Constructors
- ChartPoint({required num x, required num y, String? label})
-
Creates a point at (
x,y) with an optionallabel.const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- label → String?
-
An optional human label for this point, or
nullwhen unlabeled.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x → num
-
The point's horizontal value, in data units (not pixels).
final
- y → num
-
The point's vertical value, in data units (not pixels).
final
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