SimplePackedBubbleChart constructor

const SimplePackedBubbleChart({
  1. Key? key,
  2. required List<SimplePackedBubbleData> data,
  3. SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
  4. double? totalValue,
  5. double height = 260,
  6. EdgeInsets padding = _defaultPadding,
  7. List<Color>? palette,
  8. Color? bubbleColor,
  9. Color? borderColor,
  10. Color? activeColor,
  11. TextStyle? labelStyle,
  12. TextStyle? valueStyle,
  13. bool showLabels = true,
  14. bool showValues = true,
  15. bool showLegend = true,
  16. bool showTooltip = true,
  17. bool showActiveBubble = true,
  18. double? minBubbleRadius,
  19. double? maxBubbleRadius,
  20. double bubbleSpacing = 4,
  21. SimplePackedBubbleValueFormatter? valueFormatter,
  22. SimplePackedBubbleValueFormatter? percentFormatter,
  23. SimplePackedBubbleTapCallback? onBubbleTap,
  24. SimplePackedBubbleTooltipBuilder? tooltipBuilder,
  25. WidgetBuilder? emptyBuilder,
  26. String? semanticLabel,
  27. bool excludeFromSemantics = false,
  28. Duration animationDuration = const Duration(milliseconds: 720),
  29. Curve animationCurve = Curves.easeOutCubic,
})

Implementation

const SimplePackedBubbleChart({
  super.key,
  required this.data,
  this.style = SimpleBarChartStyle.elegant,
  this.totalValue,
  this.height = 260,
  this.padding = _defaultPadding,
  this.palette,
  this.bubbleColor,
  this.borderColor,
  this.activeColor,
  this.labelStyle,
  this.valueStyle,
  this.showLabels = true,
  this.showValues = true,
  this.showLegend = true,
  this.showTooltip = true,
  this.showActiveBubble = true,
  this.minBubbleRadius,
  this.maxBubbleRadius,
  this.bubbleSpacing = 4,
  this.valueFormatter,
  this.percentFormatter,
  this.onBubbleTap,
  this.tooltipBuilder,
  this.emptyBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.animationDuration = const Duration(milliseconds: 720),
  this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
     assert(totalValue == null || totalValue > 0),
     assert(minBubbleRadius == null || minBubbleRadius >= 0),
     assert(maxBubbleRadius == null || maxBubbleRadius >= 0),
     assert(bubbleSpacing >= 0);