SimplePackedBubbleChart constructor
const
SimplePackedBubbleChart({
- Key? key,
- required List<
SimplePackedBubbleData> data, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? totalValue,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? bubbleColor,
- Color? borderColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showLabels = true,
- bool showValues = true,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveBubble = true,
- double? minBubbleRadius,
- double? maxBubbleRadius,
- double bubbleSpacing = 4,
- SimplePackedBubbleValueFormatter? valueFormatter,
- SimplePackedBubbleValueFormatter? percentFormatter,
- SimplePackedBubbleTapCallback? onBubbleTap,
- SimplePackedBubbleTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 720),
- 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);