SimpleAreaChart constructor

const SimpleAreaChart({
  1. Key? key,
  2. required List<SimpleTrendSeries> series,
  3. SimpleTrendChartStyle style = SimpleTrendChartStyle.elegant,
  4. double? minValue,
  5. double? maxValue,
  6. double height = 240,
  7. EdgeInsets padding = const EdgeInsets.fromLTRB(48, 18, 18, 34),
  8. Color? lineColor,
  9. Color? fillColor,
  10. Color? gridColor,
  11. Color? axisColor,
  12. TextStyle? labelStyle,
  13. TextStyle? valueStyle,
  14. bool includeZero = true,
  15. bool showGrid = true,
  16. bool showDots = false,
  17. bool showValues = true,
  18. bool showLegend = true,
  19. bool showTooltip = true,
  20. List<SimpleChartReferenceLine> referenceLines = const [],
  21. List<SimpleChartReferenceBand> referenceBands = const [],
  22. bool? smooth,
  23. double? strokeWidth,
  24. double? dotRadius,
  25. double? fillOpacity,
  26. int gridLineCount = 4,
  27. SimpleTrendValueFormatter? valueFormatter,
  28. SimpleTrendPointTapCallback? onPointTap,
  29. SimpleTrendTooltipBuilder? tooltipBuilder,
  30. WidgetBuilder? emptyBuilder,
  31. String? semanticLabel,
  32. bool excludeFromSemantics = false,
  33. Duration animationDuration = const Duration(milliseconds: 750),
  34. Curve animationCurve = Curves.easeOutCubic,
})

Implementation

const SimpleAreaChart({
  super.key,
  required this.series,
  this.style = SimpleTrendChartStyle.elegant,
  this.minValue,
  this.maxValue,
  this.height = 240,
  this.padding = const EdgeInsets.fromLTRB(48, 18, 18, 34),
  this.lineColor,
  this.fillColor,
  this.gridColor,
  this.axisColor,
  this.labelStyle,
  this.valueStyle,
  this.includeZero = true,
  this.showGrid = true,
  this.showDots = false,
  this.showValues = true,
  this.showLegend = true,
  this.showTooltip = true,
  this.referenceLines = const [],
  this.referenceBands = const [],
  this.smooth,
  this.strokeWidth,
  this.dotRadius,
  this.fillOpacity,
  this.gridLineCount = 4,
  this.valueFormatter,
  this.onPointTap,
  this.tooltipBuilder,
  this.emptyBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.animationDuration = const Duration(milliseconds: 750),
  this.animationCurve = Curves.easeOutCubic,
});