SimpleStripPlotChart constructor
const
SimpleStripPlotChart({
- Key? key,
- required List<
SimpleStripPlotData> data, - SimpleBarChartOrientation orientation = SimpleBarChartOrientation.vertical,
- 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 jitter = 0.42,
- int jitterSeed = 17,
- SimpleStripPlotValueFormatter? valueFormatter,
- SimpleStripPlotTapCallback? onPointTap,
- SimpleStripPlotTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 700),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleStripPlotChart({
super.key,
required this.data,
this.orientation = SimpleBarChartOrientation.vertical,
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.jitter = 0.42,
this.jitterSeed = 17,
this.valueFormatter,
this.onPointTap,
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(dotRadius == null || dotRadius >= 0),
assert(dotOpacity >= 0 && dotOpacity <= 1),
assert(jitter >= 0 && jitter <= 1);