SimpleRugPlotChart constructor
const
SimpleRugPlotChart({
- Key? key,
- required List<
SimpleRugPlotSeries> series, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minValue,
- double? maxValue,
- double height = 220,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? tickColor,
- Color? baselineColor,
- Color? gridColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool includeZero = false,
- bool showGrid = true,
- bool showLabels = true,
- bool showValues = true,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveTick = true,
- bool showBaseline = true,
- bool showMedian = true,
- List<
SimpleChartReferenceLine> referenceLines = const [], - List<
SimpleChartReferenceBand> referenceBands = const [], - int gridLineCount = 4,
- double? tickLength,
- double? tickWidth,
- double tickOpacity = 0.78,
- SimpleRugPlotValueFormatter? valueFormatter,
- SimpleRugPlotTapCallback? onTickTap,
- SimpleRugPlotTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 620),
- 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);