SimpleDotPlotChart constructor

const SimpleDotPlotChart({
  1. Key? key,
  2. required List<String> categories,
  3. required List<SimpleDotPlotSeries> series,
  4. SimpleBarChartOrientation orientation = SimpleBarChartOrientation.horizontal,
  5. SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
  6. double? minValue,
  7. double? maxValue,
  8. double height = 260,
  9. EdgeInsets? padding,
  10. List<Color>? palette,
  11. Color? dotColor,
  12. Color? guideLineColor,
  13. Color? gridColor,
  14. Color? axisColor,
  15. Color? activeColor,
  16. TextStyle? labelStyle,
  17. TextStyle? valueStyle,
  18. bool showGrid = true,
  19. bool showGuideLines = true,
  20. bool showValues = true,
  21. bool showLegend = true,
  22. bool showTooltip = true,
  23. bool showActiveDot = true,
  24. List<SimpleChartReferenceLine> referenceLines = const [],
  25. List<SimpleChartReferenceBand> referenceBands = const [],
  26. int gridLineCount = 4,
  27. double? dotRadius,
  28. double? guideLineWidth,
  29. SimpleDotPlotValueFormatter? valueFormatter,
  30. SimpleDotPlotTapCallback? onPointTap,
  31. SimpleDotPlotTooltipBuilder? tooltipBuilder,
  32. WidgetBuilder? emptyBuilder,
  33. String? semanticLabel,
  34. bool excludeFromSemantics = false,
  35. Duration animationDuration = const Duration(milliseconds: 650),
  36. Curve animationCurve = Curves.easeOutCubic,
})

Implementation

const SimpleDotPlotChart({
  super.key,
  required this.categories,
  required this.series,
  this.orientation = SimpleBarChartOrientation.horizontal,
  this.style = SimpleBarChartStyle.elegant,
  this.minValue,
  this.maxValue,
  this.height = 260,
  this.padding,
  this.palette,
  this.dotColor,
  this.guideLineColor,
  this.gridColor,
  this.axisColor,
  this.activeColor,
  this.labelStyle,
  this.valueStyle,
  this.showGrid = true,
  this.showGuideLines = true,
  this.showValues = true,
  this.showLegend = true,
  this.showTooltip = true,
  this.showActiveDot = true,
  this.referenceLines = const [],
  this.referenceBands = const [],
  this.gridLineCount = 4,
  this.dotRadius,
  this.guideLineWidth,
  this.valueFormatter,
  this.onPointTap,
  this.tooltipBuilder,
  this.emptyBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.animationDuration = const Duration(milliseconds: 650),
  this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
     assert(gridLineCount >= 2),
     assert(dotRadius == null || dotRadius >= 0),
     assert(guideLineWidth == null || guideLineWidth > 0);