SimpleConnectedScatterChart constructor
const
SimpleConnectedScatterChart({
- Key? key,
- required List<
SimpleConnectedScatterSeries> series, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minX,
- double? maxX,
- double? minY,
- double? maxY,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- String? xAxisLabel,
- String? yAxisLabel,
- Color? lineColor,
- Color? pointColor,
- Color? gridColor,
- Color? axisColor,
- Color? activeColor,
- List<
Color> ? palette, - TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showLines = true,
- bool showPoints = true,
- bool showArrows = true,
- bool showLabels = true,
- bool showValues = false,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActivePoint = true,
- bool showAxisLabels = true,
- bool showEndpointLabels = true,
- List<
SimpleScatterReferenceLine> referenceLines = const [], - List<
SimpleScatterReferenceBand> referenceBands = const [], - int gridLineCount = 4,
- double? strokeWidth,
- double pointRadius = 4.5,
- double arrowSize = 8,
- SimpleConnectedScatterValueFormatter? xValueFormatter,
- SimpleConnectedScatterValueFormatter? yValueFormatter,
- SimpleConnectedScatterValueFormatter? valueFormatter,
- SimpleConnectedScatterPointTapCallback? onPointTap,
- SimpleConnectedScatterTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 700),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleConnectedScatterChart({
super.key,
required this.series,
this.style = SimpleBarChartStyle.elegant,
this.minX,
this.maxX,
this.minY,
this.maxY,
this.height = 260,
this.padding = _defaultPadding,
this.xAxisLabel,
this.yAxisLabel,
this.lineColor,
this.pointColor,
this.gridColor,
this.axisColor,
this.activeColor,
this.palette,
this.labelStyle,
this.valueStyle,
this.showGrid = true,
this.showLines = true,
this.showPoints = true,
this.showArrows = true,
this.showLabels = true,
this.showValues = false,
this.showLegend = true,
this.showTooltip = true,
this.showActivePoint = true,
this.showAxisLabels = true,
this.showEndpointLabels = true,
this.referenceLines = const [],
this.referenceBands = const [],
this.gridLineCount = 4,
this.strokeWidth,
this.pointRadius = 4.5,
this.arrowSize = 8,
this.xValueFormatter,
this.yValueFormatter,
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(gridLineCount >= 2),
assert(strokeWidth == null || strokeWidth > 0),
assert(pointRadius >= 0),
assert(arrowSize >= 0);