SimpleRaincloudChart constructor
const
SimpleRaincloudChart({
- Key? key,
- required List<
SimpleRaincloudChartData> data, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minValue,
- double? maxValue,
- double height = 280,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? cloudColor,
- Color? outlineColor,
- Color? boxColor,
- Color? dotColor,
- Color? medianColor,
- Color? meanColor,
- Color? outlierColor,
- Color? gridColor,
- Color? axisColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showValues = true,
- bool showCloud = true,
- bool showBox = true,
- bool showDots = true,
- bool showMean = true,
- bool showOutliers = true,
- bool showTooltip = true,
- bool showActiveGroup = true,
- List<
SimpleChartReferenceLine> referenceLines = const [], - List<
SimpleChartReferenceBand> referenceBands = const [], - int gridLineCount = 4,
- int densitySteps = 36,
- double? cloudWidthFactor,
- double? dotRadius,
- double dotOpacity = 0.72,
- double jitter = 0.44,
- int jitterSeed = 31,
- SimpleRaincloudValueFormatter? valueFormatter,
- SimpleRaincloudTapCallback? onGroupTap,
- SimpleRaincloudTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 760),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleRaincloudChart({
super.key,
required this.data,
this.style = SimpleBarChartStyle.elegant,
this.minValue,
this.maxValue,
this.height = 280,
this.padding = _defaultPadding,
this.palette,
this.cloudColor,
this.outlineColor,
this.boxColor,
this.dotColor,
this.medianColor,
this.meanColor,
this.outlierColor,
this.gridColor,
this.axisColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.showGrid = true,
this.showValues = true,
this.showCloud = true,
this.showBox = true,
this.showDots = true,
this.showMean = true,
this.showOutliers = true,
this.showTooltip = true,
this.showActiveGroup = true,
this.referenceLines = const [],
this.referenceBands = const [],
this.gridLineCount = 4,
this.densitySteps = 36,
this.cloudWidthFactor,
this.dotRadius,
this.dotOpacity = 0.72,
this.jitter = 0.44,
this.jitterSeed = 31,
this.valueFormatter,
this.onGroupTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 760),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(gridLineCount >= 2),
assert(densitySteps >= 8),
assert(
cloudWidthFactor == null ||
(cloudWidthFactor > 0 && cloudWidthFactor <= 1),
),
assert(dotRadius == null || dotRadius >= 0),
assert(dotOpacity >= 0 && dotOpacity <= 1),
assert(jitter >= 0 && jitter <= 1);