SimpleStreamgraphChart constructor
const
SimpleStreamgraphChart({
- Key? key,
- required List<
SimpleTrendSeries> series, - SimpleTrendChartStyle style = SimpleTrendChartStyle.elegant,
- SimpleStreamgraphMode mode = SimpleStreamgraphMode.absolute,
- double height = 250,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? gridColor,
- Color? axisColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showLabels = true,
- bool showValues = true,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveLayer = true,
- bool smooth = true,
- double fillOpacity = 0.82,
- int gridLineCount = 4,
- SimpleStreamgraphValueFormatter? valueFormatter,
- SimpleStreamgraphTapCallback? onLayerTap,
- SimpleStreamgraphTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 760),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleStreamgraphChart({
super.key,
required this.series,
this.style = SimpleTrendChartStyle.elegant,
this.mode = SimpleStreamgraphMode.absolute,
this.height = 250,
this.padding = _defaultPadding,
this.palette,
this.gridColor,
this.axisColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.showGrid = true,
this.showLabels = true,
this.showValues = true,
this.showLegend = true,
this.showTooltip = true,
this.showActiveLayer = true,
this.smooth = true,
this.fillOpacity = 0.82,
this.gridLineCount = 4,
this.valueFormatter,
this.shareFormatter,
this.onLayerTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 760),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(fillOpacity >= 0 && fillOpacity <= 1),
assert(gridLineCount >= 2);