SimpleEcdfChart constructor
const
SimpleEcdfChart({
- Key? key,
- required List<
SimpleEcdfSeries> series, - SimpleTrendChartStyle style = SimpleTrendChartStyle.elegant,
- double? minValue,
- double? maxValue,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? lineColor,
- Color? fillColor,
- Color? medianColor,
- Color? p90Color,
- Color? gridColor,
- Color? axisColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool includeZero = false,
- bool showGrid = true,
- bool showDots = true,
- bool showValues = false,
- bool showArea = false,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActivePoint = true,
- bool showMedianLine = true,
- bool showP90Line = false,
- List<
SimpleChartReferenceLine> referenceLines = const [], - List<
SimpleChartReferenceBand> referenceBands = const [], - int gridLineCount = 4,
- double? strokeWidth,
- double? dotRadius,
- double? fillOpacity,
- SimpleEcdfValueFormatter? valueFormatter,
- SimpleEcdfValueFormatter? percentileFormatter,
- SimpleEcdfTapCallback? onPointTap,
- SimpleEcdfTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 700),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleEcdfChart({
super.key,
required this.series,
this.style = SimpleTrendChartStyle.elegant,
this.minValue,
this.maxValue,
this.height = 260,
this.padding = _defaultPadding,
this.palette,
this.lineColor,
this.fillColor,
this.medianColor,
this.p90Color,
this.gridColor,
this.axisColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.includeZero = false,
this.showGrid = true,
this.showDots = true,
this.showValues = false,
this.showArea = false,
this.showLegend = true,
this.showTooltip = true,
this.showActivePoint = true,
this.showMedianLine = true,
this.showP90Line = false,
this.referenceLines = const [],
this.referenceBands = const [],
this.gridLineCount = 4,
this.strokeWidth,
this.dotRadius,
this.fillOpacity,
this.valueFormatter,
this.percentileFormatter,
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(gridLineCount >= 2),
assert(strokeWidth == null || strokeWidth > 0),
assert(dotRadius == null || dotRadius >= 0),
assert(fillOpacity == null || (fillOpacity >= 0 && fillOpacity <= 1));