TinyBarChart.stackedFromDataVectors constructor

const TinyBarChart.stackedFromDataVectors({
  1. Key? key,
  2. required Iterable<Vector2> dataPoints,
  3. TinyBarChartOptions? options,
  4. double? width,
  5. 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:

Implementation

const TinyBarChart.stackedFromDataVectors({
  Key? key,
  required this.dataPoints,
  TinyBarChartOptions? options,
  this.width,
  this.height,
})  : options = options ?? kDefaultBarChartOptions,
      super(key: key);