SimpleRugPlotChart constructor

const SimpleRugPlotChart({
  1. Key? key,
  2. required List<SimpleRugPlotSeries> series,
  3. SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
  4. double? minValue,
  5. double? maxValue,
  6. double height = 220,
  7. EdgeInsets padding = _defaultPadding,
  8. List<Color>? palette,
  9. Color? tickColor,
  10. Color? baselineColor,
  11. Color? gridColor,
  12. Color? activeColor,
  13. TextStyle? labelStyle,
  14. TextStyle? valueStyle,
  15. bool includeZero = false,
  16. bool showGrid = true,
  17. bool showLabels = true,
  18. bool showValues = true,
  19. bool showLegend = true,
  20. bool showTooltip = true,
  21. bool showActiveTick = true,
  22. bool showBaseline = true,
  23. bool showMedian = true,
  24. List<SimpleChartReferenceLine> referenceLines = const [],
  25. List<SimpleChartReferenceBand> referenceBands = const [],
  26. int gridLineCount = 4,
  27. double? tickLength,
  28. double? tickWidth,
  29. double tickOpacity = 0.78,
  30. SimpleRugPlotValueFormatter? valueFormatter,
  31. SimpleRugPlotTapCallback? onTickTap,
  32. SimpleRugPlotTooltipBuilder? tooltipBuilder,
  33. WidgetBuilder? emptyBuilder,
  34. String? semanticLabel,
  35. bool excludeFromSemantics = false,
  36. Duration animationDuration = const Duration(milliseconds: 620),
  37. Curve animationCurve = Curves.easeOutCubic,
})

Implementation

const SimpleRugPlotChart({
  super.key,
  required this.series,
  this.style = SimpleBarChartStyle.elegant,
  this.minValue,
  this.maxValue,
  this.height = 220,
  this.padding = _defaultPadding,
  this.palette,
  this.tickColor,
  this.baselineColor,
  this.gridColor,
  this.activeColor,
  this.labelStyle,
  this.valueStyle,
  this.includeZero = false,
  this.showGrid = true,
  this.showLabels = true,
  this.showValues = true,
  this.showLegend = true,
  this.showTooltip = true,
  this.showActiveTick = true,
  this.showBaseline = true,
  this.showMedian = true,
  this.referenceLines = const [],
  this.referenceBands = const [],
  this.gridLineCount = 4,
  this.tickLength,
  this.tickWidth,
  this.tickOpacity = 0.78,
  this.valueFormatter,
  this.onTickTap,
  this.tooltipBuilder,
  this.emptyBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.animationDuration = const Duration(milliseconds: 620),
  this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
     assert(gridLineCount >= 2),
     assert(tickLength == null || tickLength > 0),
     assert(tickWidth == null || tickWidth > 0),
     assert(tickOpacity >= 0 && tickOpacity <= 1);