SimpleConnectedScatterChart constructor

const SimpleConnectedScatterChart({
  1. Key? key,
  2. required List<SimpleConnectedScatterSeries> series,
  3. SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
  4. double? minX,
  5. double? maxX,
  6. double? minY,
  7. double? maxY,
  8. double height = 260,
  9. EdgeInsets padding = _defaultPadding,
  10. String? xAxisLabel,
  11. String? yAxisLabel,
  12. Color? lineColor,
  13. Color? pointColor,
  14. Color? gridColor,
  15. Color? axisColor,
  16. Color? activeColor,
  17. List<Color>? palette,
  18. TextStyle? labelStyle,
  19. TextStyle? valueStyle,
  20. bool showGrid = true,
  21. bool showLines = true,
  22. bool showPoints = true,
  23. bool showArrows = true,
  24. bool showLabels = true,
  25. bool showValues = false,
  26. bool showLegend = true,
  27. bool showTooltip = true,
  28. bool showActivePoint = true,
  29. bool showAxisLabels = true,
  30. bool showEndpointLabels = true,
  31. List<SimpleScatterReferenceLine> referenceLines = const [],
  32. List<SimpleScatterReferenceBand> referenceBands = const [],
  33. int gridLineCount = 4,
  34. double? strokeWidth,
  35. double pointRadius = 4.5,
  36. double arrowSize = 8,
  37. SimpleConnectedScatterValueFormatter? xValueFormatter,
  38. SimpleConnectedScatterValueFormatter? yValueFormatter,
  39. SimpleConnectedScatterValueFormatter? valueFormatter,
  40. SimpleConnectedScatterPointTapCallback? onPointTap,
  41. SimpleConnectedScatterTooltipBuilder? tooltipBuilder,
  42. WidgetBuilder? emptyBuilder,
  43. String? semanticLabel,
  44. bool excludeFromSemantics = false,
  45. Duration animationDuration = const Duration(milliseconds: 700),
  46. 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);