Chart class

Vector chart (no Flutter). Bars, line, and pie with axes, values, and legend.

Inheritance

Constructors

Chart({ChartType type = ChartType.bar, List<ChartPoint> points = const <ChartPoint>[], String title = '', double width = 360, double height = 180, bool showValues = true, bool showLegend = true, bool showGrid = true})
Chart API.
const

Properties

flowChildren → List<Widget>?
Children MultiPage should flow individually (vertical columns).
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
height → double
height API.
final
points → List<ChartPoint>
points API.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showGrid → bool
Horizontal guides on bar and line plots.
final
showLegend → bool
Color key beside pie charts, under bar/line charts when space allows.
final
showValues → bool
Paint numeric labels on marks.
final
title → String
title API.
final
type → ChartType
type API.
final
width → double
width API.
final

Methods

layout(Context context, BoxConstraints constraints) → PwBox
layout API.
override
layoutSpan(Context context, BoxConstraints constraints) → SpanSlice?
Split across pages when constraints has a bounded height.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintStamp(Context context, double pageW, double pageH) → void
Stamp paint. The default lays out and paints glyph by glyph.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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