ChartDataPoint constructor

const ChartDataPoint({
  1. required double x,
  2. required double y,
  3. String? label,
})

Creates a chart data point.

x and y are required. label is optional and can be used for axis labels or tooltips.

Implementation

const ChartDataPoint({required this.x, required this.y, this.label});