LineChartPainter constructor

LineChartPainter({
  1. required List<LineChartSeries> series,
  2. required double spacing,
  3. TextStyle? xAxisLabelStyle,
  4. TextStyle? yAxisLabelStyle,
  5. String yAxisLabelFormatter(
    1. double value
    )?,
  6. String xAxisLabelFormatter(
    1. dynamic label
    )?,
  7. double yAxisMargin = 30,
  8. double xAxisMargin = 30,
  9. bool showDots = true,
  10. bool showGrid = true,
  11. double dotRadius = 4.0,
  12. double strokeWidth = 2.0,
  13. required List xAxis,
  14. double? yMin,
  15. double? yMax,
})

Implementation

LineChartPainter({
  required this.series,
  required this.spacing,
  this.xAxisLabelStyle,
  this.yAxisLabelStyle,
  this.yAxisLabelFormatter,
  this.xAxisLabelFormatter,
  this.yAxisMargin = 30,
  this.xAxisMargin = 30,
  this.showDots = true,
  this.showGrid = true,
  this.dotRadius = 4.0,
  this.strokeWidth = 2.0,
  required this.xAxis,
  this.yMin,
  this.yMax,
});