SimpleBubbleMatrixChart constructor
const
SimpleBubbleMatrixChart({
- Key? key,
- List<
String> xLabels = const [], - List<
String> yLabels = const [], - required List<
SimpleBubbleMatrixCell> cells, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minValue,
- double? maxValue,
- double height = 250,
- EdgeInsets padding = _defaultPadding,
- Color? bubbleColor,
- Color? lowColor,
- Color? highColor,
- Color? gridColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool useColorScale = true,
- bool showGrid = true,
- bool showXLabels = true,
- bool showYLabels = true,
- bool showValues = true,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveBubble = true,
- double bubbleOpacity = 0.86,
- double minBubbleRadius = 3,
- double maxBubbleRadiusFactor = 0.42,
- SimpleBubbleMatrixValueFormatter? valueFormatter,
- SimpleBubbleMatrixCellTapCallback? onCellTap,
- SimpleBubbleMatrixTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 650),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleBubbleMatrixChart({
super.key,
this.xLabels = const [],
this.yLabels = const [],
required this.cells,
this.style = SimpleBarChartStyle.elegant,
this.minValue,
this.maxValue,
this.height = 250,
this.padding = _defaultPadding,
this.bubbleColor,
this.lowColor,
this.highColor,
this.gridColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.useColorScale = true,
this.showGrid = true,
this.showXLabels = true,
this.showYLabels = true,
this.showValues = true,
this.showLegend = true,
this.showTooltip = true,
this.showActiveBubble = true,
this.bubbleOpacity = 0.86,
this.minBubbleRadius = 3,
this.maxBubbleRadiusFactor = 0.42,
this.valueFormatter,
this.onCellTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 650),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(bubbleOpacity >= 0 && bubbleOpacity <= 1),
assert(minBubbleRadius >= 0),
assert(maxBubbleRadiusFactor > 0 && maxBubbleRadiusFactor <= 0.5);