SimpleBinnedDotPlotChart constructor

const SimpleBinnedDotPlotChart({
  1. Key? key,
  2. List<double> values = const [],
  3. List<SimpleBinnedDotPlotBin> bins = const [],
  4. int binCount = 8,
  5. SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
  6. double? minValue,
  7. double? maxValue,
  8. double height = 250,
  9. EdgeInsets padding = _defaultPadding,
  10. List<Color>? palette,
  11. Color? dotColor,
  12. Color? gridColor,
  13. Color? axisColor,
  14. Color? activeDotColor,
  15. TextStyle? labelStyle,
  16. TextStyle? valueStyle,
  17. bool showGrid = true,
  18. bool showValues = true,
  19. bool showAxisLabels = true,
  20. bool showTooltip = true,
  21. bool showActiveBin = true,
  22. int gridLineCount = 4,
  23. double? dotRadius,
  24. double dotGap = 2,
  25. double dotOpacity = 0.84,
  26. double dotValue = 1,
  27. SimpleBinnedDotPlotValueFormatter? valueFormatter,
  28. SimpleBinnedDotPlotValueFormatter? countFormatter,
  29. SimpleBinnedDotPlotTapCallback? onBinTap,
  30. SimpleBinnedDotPlotTooltipBuilder? 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 SimpleBinnedDotPlotChart({
  super.key,
  this.values = const [],
  this.bins = const [],
  this.binCount = 8,
  this.style = SimpleBarChartStyle.elegant,
  this.minValue,
  this.maxValue,
  this.height = 250,
  this.padding = _defaultPadding,
  this.palette,
  this.dotColor,
  this.gridColor,
  this.axisColor,
  this.activeDotColor,
  this.labelStyle,
  this.valueStyle,
  this.showGrid = true,
  this.showValues = true,
  this.showAxisLabels = true,
  this.showTooltip = true,
  this.showActiveBin = true,
  this.gridLineCount = 4,
  this.dotRadius,
  this.dotGap = 2,
  this.dotOpacity = 0.84,
  this.dotValue = 1,
  this.valueFormatter,
  this.countFormatter,
  this.onBinTap,
  this.tooltipBuilder,
  this.emptyBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.animationDuration = const Duration(milliseconds: 650),
  this.animationCurve = Curves.easeOutCubic,
}) : assert(binCount > 0),
     assert(height > 0),
     assert(gridLineCount >= 2),
     assert(dotRadius == null || dotRadius > 0),
     assert(dotGap >= 0),
     assert(dotOpacity >= 0 && dotOpacity <= 1),
     assert(dotValue > 0);