LineChart constructor

const LineChart({
  1. Key? key,
  2. required List<LineChartSeries> series,
  3. double spacing = 20,
  4. String? title,
  5. TextStyle? titleStyle,
  6. TextStyle? xAxisLabelStyle,
  7. TextStyle? yAxisLabelStyle,
  8. String yAxisLabelFormatter(
    1. double value
    )?,
  9. String xAxisLabelFormatter(
    1. dynamic label
    )?,
  10. void onPointTap(
    1. LineChartData
    )?,
  11. double yAxisMargin = 30,
  12. double xAxisMargin = 30,
  13. bool showDots = true,
  14. bool showGrid = true,
  15. String lineTooltipBuilder(
    1. LineChartSeries serie,
    2. LineChartData data
    )?,
  16. double dotRadius = 4.0,
  17. double strokeWidth = 2.0,
  18. required List xAxis,
  19. double? yMin,
  20. double? yMax,
})

Implementation

const LineChart({
  super.key,
  required this.series,
  this.spacing = 20,
  this.title,
  this.titleStyle,
  this.xAxisLabelStyle,
  this.yAxisLabelStyle,
  this.yAxisLabelFormatter,
  this.xAxisLabelFormatter,
  this.onPointTap,
  this.yAxisMargin = 30,
  this.xAxisMargin = 30,
  this.showDots = true,
  this.showGrid = true,
  this.lineTooltipBuilder,
  this.dotRadius = 4.0,
  this.strokeWidth = 2.0,
  required this.xAxis,
  this.yMin,
  this.yMax,
});