SimpleQQPlotChart constructor

const SimpleQQPlotChart({
  1. Key? key,
  2. required List<SimpleQQPlotSeries> series,
  3. SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
  4. double? minX,
  5. double? maxX,
  6. double? minY,
  7. double? maxY,
  8. double height = 260,
  9. EdgeInsets padding = _defaultPadding,
  10. String? xAxisLabel,
  11. String? yAxisLabel,
  12. Color? pointColor,
  13. Color? gridColor,
  14. Color? axisColor,
  15. Color? referenceLineColor,
  16. Color? fitLineColor,
  17. Color? activeColor,
  18. List<Color>? palette,
  19. TextStyle? labelStyle,
  20. TextStyle? valueStyle,
  21. bool showGrid = true,
  22. bool showValues = false,
  23. bool showLegend = true,
  24. bool showTooltip = true,
  25. bool showActivePoint = true,
  26. bool showReferenceLine = true,
  27. bool showFitLine = false,
  28. bool showAxisLabels = true,
  29. int gridLineCount = 4,
  30. double pointRadius = 5,
  31. SimpleQQPlotValueFormatter? xValueFormatter,
  32. SimpleQQPlotValueFormatter? yValueFormatter,
  33. SimpleQQPlotValueFormatter? deviationFormatter,
  34. SimpleQQPlotPointTapCallback? onPointTap,
  35. SimpleQQPlotTooltipBuilder? 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 SimpleQQPlotChart({
  super.key,
  required this.series,
  this.style = SimpleBarChartStyle.elegant,
  this.minX,
  this.maxX,
  this.minY,
  this.maxY,
  this.height = 260,
  this.padding = _defaultPadding,
  this.xAxisLabel,
  this.yAxisLabel,
  this.pointColor,
  this.gridColor,
  this.axisColor,
  this.referenceLineColor,
  this.fitLineColor,
  this.activeColor,
  this.palette,
  this.labelStyle,
  this.valueStyle,
  this.showGrid = true,
  this.showValues = false,
  this.showLegend = true,
  this.showTooltip = true,
  this.showActivePoint = true,
  this.showReferenceLine = true,
  this.showFitLine = false,
  this.showAxisLabels = true,
  this.gridLineCount = 4,
  this.pointRadius = 5,
  this.xValueFormatter,
  this.yValueFormatter,
  this.deviationFormatter,
  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(pointRadius >= 0);