LineChart constructor

const LineChart({
  1. Key? key,
  2. required List<double> data,
  3. List<String>? labels,
  4. double height = 200,
  5. Color? lineColor,
  6. Gradient? gradient,
  7. bool showGrid = true,
  8. bool showDots = true,
  9. bool showLabels = true,
  10. bool showArea = true,
  11. double lineWidth = 2.5,
})

Implementation

const LineChart({
  super.key,
  required this.data,
  this.labels,
  this.height = 200,
  this.lineColor,
  this.gradient,
  this.showGrid = true,
  this.showDots = true,
  this.showLabels = true,
  this.showArea = true,
  this.lineWidth = 2.5,
});