StackedAreaChartWidget constructor

const StackedAreaChartWidget({
  1. Key? key,
  2. required List<ChartDataSet> dataSets,
  3. double lineWidth = 3.0,
  4. bool showGrid = true,
  5. bool showAxis = true,
  6. bool showLabel = true,
  7. String? title,
  8. String? subtitle,
  9. Widget? header,
  10. Widget? footer,
  11. ChartPointCallback? onPointTap,
  12. bool isLoading = false,
  13. bool isError = false,
  14. double? height,
  15. EdgeInsets? padding,
  16. EdgeInsets? margin,
  17. ChartsConfig? config,
  18. int? xAxisLabelRotation,
  19. int? yAxisLabelRotation,
})

Implementation

const StackedAreaChartWidget({
  super.key,
  required this.dataSets,
  this.lineWidth = 3.0,
  this.showGrid = true,
  this.showAxis = true,
  this.showLabel = true,
  this.title,
  this.subtitle,
  this.header,
  this.footer,
  this.onPointTap,
  this.isLoading = false,
  this.isError = false,
  this.height,
  this.padding,
  this.margin,
  this.config,
  this.xAxisLabelRotation,
  this.yAxisLabelRotation,
}) : assert(dataSets.length > 1, 'Provide at least two datasets to stack.');