SimpleControlChart constructor
const
SimpleControlChart({
- Key? key,
- required List<
SimpleControlChartPoint> points, - SimpleTrendChartStyle style = SimpleTrendChartStyle.elegant,
- double? minValue,
- double? maxValue,
- double? centerValue,
- double? lowerControlLimit,
- double? upperControlLimit,
- double? lowerWarningLimit,
- double? upperWarningLimit,
- double sigmaMultiplier = 3,
- double warningSigmaMultiplier = 2,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- Color? lineColor,
- Color? dotColor,
- Color? centerLineColor,
- Color? controlLimitColor,
- Color? warningBandColor,
- Color? signalColor,
- Color? gridColor,
- Color? axisColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool includeZero = false,
- bool showGrid = true,
- bool showLine = true,
- bool showDots = true,
- bool showValues = false,
- bool showLabels = true,
- bool showCenterLine = true,
- bool showControlLimits = true,
- bool showWarningBand = true,
- bool highlightSignals = true,
- bool showTooltip = true,
- bool showActivePoint = true,
- List<
SimpleChartReferenceLine> referenceLines = const [], - List<
SimpleChartReferenceBand> referenceBands = const [], - int gridLineCount = 4,
- double? strokeWidth,
- double? dotRadius,
- SimpleControlValueFormatter? valueFormatter,
- SimpleControlPointTapCallback? onPointTap,
- SimpleControlTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 700),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleControlChart({
super.key,
required this.points,
this.style = SimpleTrendChartStyle.elegant,
this.minValue,
this.maxValue,
this.centerValue,
this.lowerControlLimit,
this.upperControlLimit,
this.lowerWarningLimit,
this.upperWarningLimit,
this.sigmaMultiplier = 3,
this.warningSigmaMultiplier = 2,
this.height = 260,
this.padding = _defaultPadding,
this.lineColor,
this.dotColor,
this.centerLineColor,
this.controlLimitColor,
this.warningBandColor,
this.signalColor,
this.gridColor,
this.axisColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.includeZero = false,
this.showGrid = true,
this.showLine = true,
this.showDots = true,
this.showValues = false,
this.showLabels = true,
this.showCenterLine = true,
this.showControlLimits = true,
this.showWarningBand = true,
this.highlightSignals = true,
this.showTooltip = true,
this.showActivePoint = true,
this.referenceLines = const [],
this.referenceBands = const [],
this.gridLineCount = 4,
this.strokeWidth,
this.dotRadius,
this.valueFormatter,
this.onPointTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 700),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(sigmaMultiplier > 0),
assert(warningSigmaMultiplier > 0),
assert(gridLineCount >= 2),
assert(strokeWidth == null || strokeWidth > 0),
assert(dotRadius == null || dotRadius >= 0);