SimpleBumpChart constructor

const SimpleBumpChart({
  1. Key? key,
  2. required List<String> periods,
  3. required List<SimpleBumpSeries> series,
  4. SimpleTrendChartStyle style = SimpleTrendChartStyle.elegant,
  5. int? maxRank,
  6. double height = 260,
  7. EdgeInsets padding = _defaultPadding,
  8. List<Color>? palette,
  9. Color? lineColor,
  10. Color? gridColor,
  11. Color? axisColor,
  12. Color? activeColor,
  13. TextStyle? labelStyle,
  14. TextStyle? valueStyle,
  15. bool showGrid = true,
  16. bool showDots = true,
  17. bool showValues = true,
  18. bool showLegend = true,
  19. bool showTooltip = true,
  20. bool showActiveSeries = true,
  21. bool smooth = true,
  22. int gridLineCount = 5,
  23. double? strokeWidth,
  24. double? dotRadius,
  25. SimpleBumpRankFormatter? rankFormatter,
  26. SimpleBumpTapCallback? onPointTap,
  27. SimpleBumpTooltipBuilder? tooltipBuilder,
  28. WidgetBuilder? emptyBuilder,
  29. String? semanticLabel,
  30. bool excludeFromSemantics = false,
  31. Duration animationDuration = const Duration(milliseconds: 750),
  32. Curve animationCurve = Curves.easeOutCubic,
})

Implementation

const SimpleBumpChart({
  super.key,
  required this.periods,
  required this.series,
  this.style = SimpleTrendChartStyle.elegant,
  this.maxRank,
  this.height = 260,
  this.padding = _defaultPadding,
  this.palette,
  this.lineColor,
  this.gridColor,
  this.axisColor,
  this.activeColor,
  this.labelStyle,
  this.valueStyle,
  this.showGrid = true,
  this.showDots = true,
  this.showValues = true,
  this.showLegend = true,
  this.showTooltip = true,
  this.showActiveSeries = true,
  this.smooth = true,
  this.gridLineCount = 5,
  this.strokeWidth,
  this.dotRadius,
  this.rankFormatter,
  this.onPointTap,
  this.tooltipBuilder,
  this.emptyBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.animationDuration = const Duration(milliseconds: 750),
  this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
     assert(maxRank == null || maxRank > 0),
     assert(gridLineCount >= 2),
     assert(strokeWidth == null || strokeWidth > 0),
     assert(dotRadius == null || dotRadius >= 0);