SimpleBumpChart constructor
const
SimpleBumpChart({
- Key? key,
- required List<
String> periods, - required List<
SimpleBumpSeries> series, - SimpleTrendChartStyle style = SimpleTrendChartStyle.elegant,
- int? maxRank,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? lineColor,
- Color? gridColor,
- Color? axisColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showDots = true,
- bool showValues = true,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveSeries = true,
- bool smooth = true,
- int gridLineCount = 5,
- double? strokeWidth,
- double? dotRadius,
- SimpleBumpRankFormatter? rankFormatter,
- SimpleBumpTapCallback? onPointTap,
- SimpleBumpTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 750),
- 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);