SimpleBeeswarmChart constructor
const
SimpleBeeswarmChart({
- Key? key,
- required List<
SimpleBeeswarmData> data, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minValue,
- double? maxValue,
- double height = 260,
- EdgeInsets? padding,
- List<
Color> ? palette, - Color? dotColor,
- Color? meanColor,
- Color? medianColor,
- Color? gridColor,
- Color? axisColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool includeZero = false,
- bool showGrid = true,
- bool showLabels = true,
- bool showValues = false,
- bool showMean = true,
- bool showMedian = true,
- bool showTooltip = true,
- bool showActiveDot = true,
- List<
SimpleChartReferenceLine> referenceLines = const [], - List<
SimpleChartReferenceBand> referenceBands = const [], - int gridLineCount = 4,
- double? dotRadius,
- double dotOpacity = 0.78,
- double collisionGap = 1.2,
- double swarmWidthFactor = 0.72,
- SimpleBeeswarmValueFormatter? valueFormatter,
- SimpleBeeswarmTapCallback? onPointTap,
- SimpleBeeswarmTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 720),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleBeeswarmChart({
super.key,
required this.data,
this.style = SimpleBarChartStyle.elegant,
this.minValue,
this.maxValue,
this.height = 260,
this.padding,
this.palette,
this.dotColor,
this.meanColor,
this.medianColor,
this.gridColor,
this.axisColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.includeZero = false,
this.showGrid = true,
this.showLabels = true,
this.showValues = false,
this.showMean = true,
this.showMedian = true,
this.showTooltip = true,
this.showActiveDot = true,
this.referenceLines = const [],
this.referenceBands = const [],
this.gridLineCount = 4,
this.dotRadius,
this.dotOpacity = 0.78,
this.collisionGap = 1.2,
this.swarmWidthFactor = 0.72,
this.valueFormatter,
this.onPointTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 720),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(gridLineCount >= 2),
assert(dotRadius == null || dotRadius >= 0),
assert(dotOpacity >= 0 && dotOpacity <= 1),
assert(collisionGap > 0),
assert(swarmWidthFactor >= 0 && swarmWidthFactor <= 1);