TinyLineChart.fromDataVectors constructor

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

Creates a TinyLineChart from a Iterable of Vector2.

Implementation

const TinyLineChart.fromDataVectors({
  Key? key,
  required this.dataPoints,
  TinyLineChartOptions? options,
  this.width,
  this.height,
})  : options = options ?? kDefaultLineChartOptions,
      super(key: key);