SimpleSmallMultiplesChart constructor
const
SimpleSmallMultiplesChart({
- Key? key,
- required List<
SimpleSmallMultiplePanel> panels, - SimpleTrendChartStyle style = SimpleTrendChartStyle.elegant,
- double? minValue,
- double? maxValue,
- double height = 300,
- EdgeInsets padding = _defaultPadding,
- EdgeInsets chartPadding = _innerChartPadding,
- int? columns,
- double minPanelWidth = 170,
- double panelGap = 12,
- Color? lineColor,
- Color? fillColor,
- Color? gridColor,
- Color? axisColor,
- Color? dividerColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- TextStyle? subtitleStyle,
- bool includeZero = false,
- bool showGrid = true,
- bool showDots = true,
- bool showValues = false,
- bool showArea = false,
- bool showLegend = false,
- bool showTooltip = true,
- bool showPanelDividers = true,
- bool? smooth,
- double? strokeWidth,
- double? dotRadius,
- double? fillOpacity,
- int gridLineCount = 3,
- List<
SimpleChartReferenceLine> referenceLines = const [], - List<
SimpleChartReferenceBand> referenceBands = const [], - SimpleSmallMultiplesValueFormatter? valueFormatter,
- SimpleSmallMultiplesPointTapCallback? onPointTap,
- SimpleSmallMultiplesTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 680),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleSmallMultiplesChart({
super.key,
required this.panels,
this.style = SimpleTrendChartStyle.elegant,
this.minValue,
this.maxValue,
this.height = 300,
this.padding = _defaultPadding,
this.chartPadding = _innerChartPadding,
this.columns,
this.minPanelWidth = 170,
this.panelGap = 12,
this.lineColor,
this.fillColor,
this.gridColor,
this.axisColor,
this.dividerColor,
this.labelStyle,
this.valueStyle,
this.subtitleStyle,
this.sharedYAxis = true,
this.includeZero = false,
this.showGrid = true,
this.showDots = true,
this.showValues = false,
this.showArea = false,
this.showLegend = false,
this.showTooltip = true,
this.showPanelDividers = true,
this.smooth,
this.strokeWidth,
this.dotRadius,
this.fillOpacity,
this.gridLineCount = 3,
this.referenceLines = const [],
this.referenceBands = const [],
this.valueFormatter,
this.onPointTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 680),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(columns == null || columns > 0),
assert(minPanelWidth > 0),
assert(panelGap >= 0),
assert(gridLineCount >= 2),
assert(strokeWidth == null || strokeWidth > 0),
assert(dotRadius == null || dotRadius >= 0),
assert(fillOpacity == null || (fillOpacity >= 0 && fillOpacity <= 1));