ScatterChartWidget constructor

const ScatterChartWidget({
  1. Key? key,
  2. required List<ChartDataSet> dataSets,
  3. double pointSize = 8.0,
  4. bool showGrid = true,
  5. bool showAxis = true,
  6. bool showLabel = true,
  7. String? title,
  8. String? subtitle,
  9. Widget? header,
  10. Widget? footer,
  11. ChartPointCallback? onPointTap,
  12. ChartPointHoverCallback? onPointHover,
  13. bool isLoading = false,
  14. bool isError = false,
  15. double? height,
  16. EdgeInsets? padding,
  17. EdgeInsets? margin,
  18. ChartsConfig? config,
  19. int? xAxisLabelRotation,
  20. int? yAxisLabelRotation,
})

Implementation

const ScatterChartWidget({
  super.key,
  required this.dataSets,
  this.pointSize = 8.0,
  this.showGrid = true,
  this.showAxis = true,
  this.showLabel = true,
  this.title,
  this.subtitle,
  this.header,
  this.footer,
  this.onPointTap,
  this.onPointHover,
  this.isLoading = false,
  this.isError = false,
  this.height,
  this.padding,
  this.margin,
  this.config,
  this.xAxisLabelRotation,
  this.yAxisLabelRotation,
}) : assert(pointSize > 0, 'Point size must be positive');