AreaChartRenderer class
Draws a smooth area chart from [ChartPoint]: Catmull-Rom spline, soft
gradient fill that fades to the baseline, a left-to-right reveal, and
white-haloed vertex dots.
- Inheritance
-
- Object
- ChartRenderer
- AreaChartRenderer
- Implemented types
Constructors
-
AreaChartRenderer({required List<
ChartPoint> points, Color? color}) -
Creates a renderer for a single smooth area series of
points.
Properties
- accessibilityLabel → String
-
A short label naming the kind of chart, e.g.
"Line chart", for semantics.no setteroverride - accessibilityValue → String
-
A value summarizing the chart's data — counts, range, a few points.
no setteroverride
- color → Color
-
The stroke and gradient-fill color of the area.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
points
→ List<
ChartPoint> -
The ordered data points of the series.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildScene(
Size size) → ChartScene -
Builds the hit-test ChartScene for
size. Implementations must derive it from the same math used in ChartRenderer.draw, so the marks line up with the pixels exactly.override -
draw(
Canvas canvas, Size size, DrafterThemeColors theme, double progress) → void -
Draws the chart.
progressis the entrance reveal in0..1(1 = fully drawn).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.
inherited