DesignChartTable class

A chart's data as a table, the alternative an app shows instead of the chart (a screen reader's "Show data table"): a row per x value, a column per series (DesignChartTable.new), or a row per slice with its value and share (DesignChartTable.slices). A screen reader reads a table, its column headers and cells, a missing value as "Empty"; cellBuilder paints each cell, and the columns are as wide as their widest cell.

DesignChartTable(series: const [DesignChartSeries(label: 'Revenue', points: [DesignChartPoint(0, 820)])], cellBuilder: (context, cell) => Text(cell.text))
Inheritance

Constructors

DesignChartTable({Key? key, required List<DesignChartSeries> series, required DesignChartTableCellBuilder cellBuilder, DesignChartXAxis xAxis = DesignChartXAxis.linear, List<String>? categories, DesignChartFormat? formatX, DesignChartFormat? formatY, String xHeader = '', String? semanticLabel})
A table of series: x values down, series across.
const
DesignChartTable.slices({Key? key, required List<DesignPieSlice> slices, required DesignChartTableCellBuilder cellBuilder, DesignChartFormat? formatValue, String xHeader = '', String valueHeader = '', String shareHeader = '', String? semanticLabel})
A table of slices: name, value and share.
const

Properties

categories → List<String>?
A band axis's category names, as DesignChart.categories.
final
cellBuilder → DesignChartTableCellBuilder
Paints each cell.
final
formatX → DesignChartFormat?
The x values' words, as DesignChart.formatX.
final
formatY → DesignChartFormat?
The values' words, as DesignChart.formatY (a slice's value, as DesignPieChart.formatValue).
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
The table's name, said first; null: none.
final
series → List<DesignChartSeries>?
The series, for DesignChartTable.new.
final
shareHeader → String
A slices table's share column header; empty by default.
final
slices → List<DesignPieSlice>?
The slices, for DesignChartTable.slices.
final
valueHeader → String
A slices table's value column header; empty by default.
final
xAxis → DesignChartXAxis
What the x values are, as DesignChart.xAxis.
final
xHeader → String
The first column's header ("Month"); empty by default.
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