SimpleAreaChart constructor
const
SimpleAreaChart({
- Key? key,
- required List<
SimpleTrendSeries> series, - SimpleTrendChartStyle style = SimpleTrendChartStyle.elegant,
- double? minValue,
- double? maxValue,
- double height = 240,
- EdgeInsets padding = const EdgeInsets.fromLTRB(48, 18, 18, 34),
- Color? lineColor,
- Color? fillColor,
- Color? gridColor,
- Color? axisColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool includeZero = true,
- bool showGrid = true,
- bool showDots = false,
- bool showValues = true,
- bool showLegend = true,
- bool showTooltip = true,
- List<
SimpleChartReferenceLine> referenceLines = const [], - List<
SimpleChartReferenceBand> referenceBands = const [], - bool? smooth,
- double? strokeWidth,
- double? dotRadius,
- double? fillOpacity,
- int gridLineCount = 4,
- SimpleTrendValueFormatter? valueFormatter,
- SimpleTrendPointTapCallback? onPointTap,
- SimpleTrendTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 750),
- 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,
});