SimpleBubbleChart constructor
const
SimpleBubbleChart({
- Key? key,
- required List<
SimpleBubbleChartData> data, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minX,
- double? maxX,
- double? minY,
- double? maxY,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- String? xAxisLabel,
- String? yAxisLabel,
- String sizeLabel = 'Size',
- Color? bubbleColor,
- Color? gridColor,
- Color? axisColor,
- Color? trendLineColor,
- Color? activeColor,
- List<
Color> ? palette, - TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showLabels = false,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveBubble = true,
- bool showTrendLine = false,
- bool showAxisLabels = true,
- List<
SimpleScatterReferenceLine> referenceLines = const [], - List<
SimpleScatterReferenceBand> referenceBands = const [], - int gridLineCount = 4,
- double? minBubbleRadius,
- double? maxBubbleRadius,
- SimpleBubbleValueFormatter? xValueFormatter,
- SimpleBubbleValueFormatter? yValueFormatter,
- SimpleBubbleValueFormatter? sizeFormatter,
- SimpleBubbleTapCallback? onBubbleTap,
- SimpleBubbleTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 700),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleBubbleChart({
super.key,
required this.data,
this.style = SimpleBarChartStyle.elegant,
this.minX,
this.maxX,
this.minY,
this.maxY,
this.height = 260,
this.padding = _defaultPadding,
this.xAxisLabel,
this.yAxisLabel,
this.sizeLabel = 'Size',
this.bubbleColor,
this.gridColor,
this.axisColor,
this.trendLineColor,
this.activeColor,
this.palette,
this.labelStyle,
this.valueStyle,
this.showGrid = true,
this.showLabels = false,
this.showLegend = true,
this.showTooltip = true,
this.showActiveBubble = true,
this.showTrendLine = false,
this.showAxisLabels = true,
this.referenceLines = const [],
this.referenceBands = const [],
this.gridLineCount = 4,
this.minBubbleRadius,
this.maxBubbleRadius,
this.xValueFormatter,
this.yValueFormatter,
this.sizeFormatter,
this.onBubbleTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 700),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(gridLineCount >= 2),
assert(minBubbleRadius == null || minBubbleRadius >= 0),
assert(maxBubbleRadius == null || maxBubbleRadius >= 0);