SimpleStreamgraphChart constructor

const SimpleStreamgraphChart({
  1. Key? key,
  2. required List<SimpleTrendSeries> series,
  3. SimpleTrendChartStyle style = SimpleTrendChartStyle.elegant,
  4. SimpleStreamgraphMode mode = SimpleStreamgraphMode.absolute,
  5. double height = 250,
  6. EdgeInsets padding = _defaultPadding,
  7. List<Color>? palette,
  8. Color? gridColor,
  9. Color? axisColor,
  10. Color? activeColor,
  11. TextStyle? labelStyle,
  12. TextStyle? valueStyle,
  13. bool showGrid = true,
  14. bool showLabels = true,
  15. bool showValues = true,
  16. bool showLegend = true,
  17. bool showTooltip = true,
  18. bool showActiveLayer = true,
  19. bool smooth = true,
  20. double fillOpacity = 0.82,
  21. int gridLineCount = 4,
  22. SimpleStreamgraphValueFormatter? valueFormatter,
  23. SimpleStreamgraphShareFormatter? shareFormatter,
  24. SimpleStreamgraphTapCallback? onLayerTap,
  25. SimpleStreamgraphTooltipBuilder? tooltipBuilder,
  26. WidgetBuilder? emptyBuilder,
  27. String? semanticLabel,
  28. bool excludeFromSemantics = false,
  29. Duration animationDuration = const Duration(milliseconds: 760),
  30. 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);