SimpleStripPlotChart constructor

const SimpleStripPlotChart({
  1. Key? key,
  2. required List<SimpleStripPlotData> data,
  3. SimpleBarChartOrientation orientation = SimpleBarChartOrientation.vertical,
  4. SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
  5. double? minValue,
  6. double? maxValue,
  7. double height = 260,
  8. EdgeInsets? padding,
  9. List<Color>? palette,
  10. Color? dotColor,
  11. Color? meanColor,
  12. Color? medianColor,
  13. Color? gridColor,
  14. Color? axisColor,
  15. Color? activeColor,
  16. TextStyle? labelStyle,
  17. TextStyle? valueStyle,
  18. bool includeZero = false,
  19. bool showGrid = true,
  20. bool showLabels = true,
  21. bool showValues = false,
  22. bool showMean = true,
  23. bool showMedian = true,
  24. bool showTooltip = true,
  25. bool showActiveDot = true,
  26. List<SimpleChartReferenceLine> referenceLines = const [],
  27. List<SimpleChartReferenceBand> referenceBands = const [],
  28. int gridLineCount = 4,
  29. double? dotRadius,
  30. double dotOpacity = 0.78,
  31. double jitter = 0.42,
  32. int jitterSeed = 17,
  33. SimpleStripPlotValueFormatter? valueFormatter,
  34. SimpleStripPlotTapCallback? onPointTap,
  35. SimpleStripPlotTooltipBuilder? tooltipBuilder,
  36. WidgetBuilder? emptyBuilder,
  37. String? semanticLabel,
  38. bool excludeFromSemantics = false,
  39. Duration animationDuration = const Duration(milliseconds: 700),
  40. 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);