SimpleBoxenPlotChart constructor
const
SimpleBoxenPlotChart({
- Key? key,
- required List<
SimpleBoxenPlotData> data, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minValue,
- double? maxValue,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? boxColor,
- Color? medianColor,
- Color? whiskerColor,
- Color? gridColor,
- Color? axisColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showValues = true,
- bool showMedian = true,
- bool showWhiskers = true,
- bool showTooltip = true,
- bool showActiveBox = true,
- List<
SimpleChartReferenceLine> referenceLines = const [], - List<
SimpleChartReferenceBand> referenceBands = const [], - int gridLineCount = 4,
- int maxDepth = 4,
- double? boxWidthFactor,
- double? strokeWidth,
- SimpleBoxenPlotValueFormatter? valueFormatter,
- SimpleBoxenPlotTapCallback? onBoxTap,
- SimpleBoxenPlotTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 700),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleBoxenPlotChart({
super.key,
required this.data,
this.style = SimpleBarChartStyle.elegant,
this.minValue,
this.maxValue,
this.height = 260,
this.padding = _defaultPadding,
this.palette,
this.boxColor,
this.medianColor,
this.whiskerColor,
this.gridColor,
this.axisColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.showGrid = true,
this.showValues = true,
this.showMedian = true,
this.showWhiskers = true,
this.showTooltip = true,
this.showActiveBox = true,
this.referenceLines = const [],
this.referenceBands = const [],
this.gridLineCount = 4,
this.maxDepth = 4,
this.boxWidthFactor,
this.strokeWidth,
this.valueFormatter,
this.onBoxTap,
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(maxDepth > 0),
assert(
boxWidthFactor == null || (boxWidthFactor > 0 && boxWidthFactor <= 1),
),
assert(strokeWidth == null || strokeWidth > 0);