MinimalLineChart class

A series over a run of labels — signups a day, revenue a month, two plans against each other: 1.6 px lines with round joins on a plot of hairline rules, the values' scale in mono down its start edge and labels in mono under it, a legend over it when there is more than one series. The first series takes the accent.

The readout follows the pointer, a finger dragged across it, or the arrow keys once the chart has focus: a hairline down the nearest label, a dot on each line and a small card with the label and every series' value — a chart's readout is information, so it answers a hovering pointer. loading shows a pulsing placeholder over the whole box the chart takes (its plot and the labels under it); with no values the plot's rules run across that box and say so (emptyLabel, else "No data").

MinimalLineChart(series: [MinimalChartSeries('Signups', weekly)], labels: const ['M', 'T', 'W', 'T', 'F', 'S', 'S'])
Inheritance

Constructors

MinimalLineChart({Key? key, required List<MinimalChartSeries> series, List<String>? labels, double height = 180, bool loading = false, String? emptyLabel, String? semanticLabel, String format(double value)?})
Lines through series.
const

Properties

emptyLabel → String?
What a chart with no values says.
final
format → String Function(double value)?
How a value prints in the scale and the readout; null prints it short (1.2k).
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
The plot's height.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labels → List<String>?
One short label per value (M, Jan, 09:00), in mono under the plot; long runs print as many as fit, evenly spaced, the first and the last among them whenever two fit.
final
loading → bool
Whether the data is still coming: a skeleton.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
What a screen reader hears for the chart as a whole.
final
series → List<MinimalChartSeries>
The lines.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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