AreaChart constructor

const AreaChart({
  1. Key? key,
  2. required List<AreaChartSeries> series,
  3. required List xAxis,
  4. String? title,
  5. TextStyle? titleStyle,
  6. double xAxisMargin = 30,
  7. double yAxisMargin = 30,
  8. String tooltipBuilder(
    1. AreaChartSeries serie,
    2. AreaChartData data
    )?,
  9. TextStyle? xAxisLabelStyle,
  10. String xAxisLabelFormatter(
    1. dynamic label
    )?,
  11. TextStyle? yAxisLabelStyle,
  12. String yAxisLabelFormatter(
    1. double value
    )?,
  13. LegendPosition? legendPosition = LegendPosition.bottom,
})

Implementation

const AreaChart({
  super.key,
  required this.series,
  required this.xAxis,
  this.title,
  this.titleStyle,
  this.xAxisMargin = 30,
  this.yAxisMargin = 30,
  this.tooltipBuilder,
  this.xAxisLabelStyle,
  this.xAxisLabelFormatter,
  this.yAxisLabelStyle,
  this.yAxisLabelFormatter,
  this.legendPosition = LegendPosition.bottom,
});