TinyColumnChart.fromDataVectors constructor

const TinyColumnChart.fromDataVectors({
  1. Key? key,
  2. required Iterable<Vector2> dataPoints,
  3. TinyColumnChartOptions? options,
  4. double? width,
  5. double? height,
})

Creates a TinyLineChart from a Iterable of Vector2.

The x value in each vector represents the column order and the y represents its value.

Implementation

const TinyColumnChart.fromDataVectors({
  Key? key,
  required this.dataPoints,
  TinyColumnChartOptions? options,
  this.width,
  this.height,
})  : options = options ?? kDefaultColumnChartOptions,
      super(key: key);