SimpleFrequencyPolygonChart constructor

const SimpleFrequencyPolygonChart({
  1. Key? key,
  2. List<double> values = const [],
  3. List<SimpleFrequencyPolygonSeries> series = const [],
  4. int binCount = 8,
  5. SimpleFrequencyPolygonScale scale = SimpleFrequencyPolygonScale.count,
  6. SimpleTrendChartStyle style = SimpleTrendChartStyle.elegant,
  7. double? minValue,
  8. double? maxValue,
  9. double? minFrequency,
  10. double? maxFrequency,
  11. double height = 250,
  12. EdgeInsets padding = _defaultPadding,
  13. Color? lineColor,
  14. Color? fillColor,
  15. Color? gridColor,
  16. Color? axisColor,
  17. TextStyle? labelStyle,
  18. TextStyle? valueStyle,
  19. bool includeZero = true,
  20. bool showGrid = true,
  21. bool showDots = true,
  22. bool showValues = false,
  23. bool showArea = false,
  24. bool showLegend = true,
  25. bool showTooltip = true,
  26. bool? smooth = false,
  27. double? strokeWidth,
  28. double? dotRadius,
  29. double? fillOpacity,
  30. int gridLineCount = 4,
  31. List<SimpleChartReferenceLine> referenceLines = const [],
  32. List<SimpleChartReferenceBand> referenceBands = const [],
  33. SimpleFrequencyPolygonValueFormatter? valueFormatter,
  34. SimpleFrequencyPolygonValueFormatter? frequencyFormatter,
  35. SimpleFrequencyPolygonTapCallback? onBinTap,
  36. SimpleFrequencyPolygonTooltipBuilder? tooltipBuilder,
  37. WidgetBuilder? emptyBuilder,
  38. String? semanticLabel,
  39. bool excludeFromSemantics = false,
  40. Duration animationDuration = const Duration(milliseconds: 700),
  41. Curve animationCurve = Curves.easeOutCubic,
})

Implementation

const SimpleFrequencyPolygonChart({
  super.key,
  this.values = const [],
  this.series = const [],
  this.binCount = 8,
  this.scale = SimpleFrequencyPolygonScale.count,
  this.style = SimpleTrendChartStyle.elegant,
  this.minValue,
  this.maxValue,
  this.minFrequency,
  this.maxFrequency,
  this.height = 250,
  this.padding = _defaultPadding,
  this.lineColor,
  this.fillColor,
  this.gridColor,
  this.axisColor,
  this.labelStyle,
  this.valueStyle,
  this.includeZero = true,
  this.showGrid = true,
  this.showDots = true,
  this.showValues = false,
  this.showArea = false,
  this.showLegend = true,
  this.showTooltip = true,
  this.smooth = false,
  this.strokeWidth,
  this.dotRadius,
  this.fillOpacity,
  this.gridLineCount = 4,
  this.referenceLines = const [],
  this.referenceBands = const [],
  this.valueFormatter,
  this.frequencyFormatter,
  this.onBinTap,
  this.tooltipBuilder,
  this.emptyBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.animationDuration = const Duration(milliseconds: 700),
  this.animationCurve = Curves.easeOutCubic,
}) : assert(binCount > 0),
     assert(height > 0),
     assert(gridLineCount >= 2),
     assert(strokeWidth == null || strokeWidth > 0),
     assert(dotRadius == null || dotRadius >= 0),
     assert(fillOpacity == null || (fillOpacity >= 0 && fillOpacity <= 1));