TinyBarChart.stackedFromDataVectors constructor
const
TinyBarChart.stackedFromDataVectors({
- Key? key,
- required Iterable<
Vector2> dataPoints, - TinyBarChartOptions? options,
- double? width,
- double? height,
Just like TinyBarChart.stacked except the data is represented by a
list of Vector2
.
For each bar is based on a Vector2
, the x value represents the order of
the data and the y value represents the actual value of the bar.
See also:
- TinyBarChart.stacked To build a bar chart of stacked bars.
- TinyBarChart.single to build a bar chart that represents only one value.
Implementation
const TinyBarChart.stackedFromDataVectors({
Key? key,
required this.dataPoints,
TinyBarChartOptions? options,
this.width,
this.height,
}) : options = options ?? kDefaultBarChartOptions,
super(key: key);