LineChartData constructor

LineChartData({
  1. required String x,
  2. required double y,
  3. required Color color,
})

Creates a LineChartData instance.

  • x: The label for the x-axis.
  • y: The value for the y-axis.
  • color: The color of the data point.

Implementation

LineChartData({
  required this.x,
  required this.y,
  required this.color,
});