SimpleBubbleMatrixChart constructor

const SimpleBubbleMatrixChart({
  1. Key? key,
  2. List<String> xLabels = const [],
  3. List<String> yLabels = const [],
  4. required List<SimpleBubbleMatrixCell> cells,
  5. SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
  6. double? minValue,
  7. double? maxValue,
  8. double height = 250,
  9. EdgeInsets padding = _defaultPadding,
  10. Color? bubbleColor,
  11. Color? lowColor,
  12. Color? highColor,
  13. Color? gridColor,
  14. Color? activeColor,
  15. TextStyle? labelStyle,
  16. TextStyle? valueStyle,
  17. bool useColorScale = true,
  18. bool showGrid = true,
  19. bool showXLabels = true,
  20. bool showYLabels = true,
  21. bool showValues = true,
  22. bool showLegend = true,
  23. bool showTooltip = true,
  24. bool showActiveBubble = true,
  25. double bubbleOpacity = 0.86,
  26. double minBubbleRadius = 3,
  27. double maxBubbleRadiusFactor = 0.42,
  28. SimpleBubbleMatrixValueFormatter? valueFormatter,
  29. SimpleBubbleMatrixCellTapCallback? onCellTap,
  30. SimpleBubbleMatrixTooltipBuilder? tooltipBuilder,
  31. WidgetBuilder? emptyBuilder,
  32. String? semanticLabel,
  33. bool excludeFromSemantics = false,
  34. Duration animationDuration = const Duration(milliseconds: 650),
  35. 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);