Chart.scatter constructor

Chart.scatter({
  1. required CellIndex anchor,
  2. required List<ChartSeries> series,
  3. String? title,
  4. LegendPosition legend = LegendPosition.right,
  5. int width = 480,
  6. int height = 288,
  7. String? xAxisTitle,
  8. String? yAxisTitle,
  9. bool plotVisibleOnly = true,
  10. CellIndex? anchorTo,
  11. ChartDataLabels? dataLabels,
})

A scatter (XY) chart. Each series needs both ChartSeries.xValues and ChartSeries.values.

Implementation

factory Chart.scatter({
  required CellIndex anchor,
  required List<ChartSeries> series,
  String? title,
  LegendPosition legend = LegendPosition.right,
  int width = 480,
  int height = 288,
  String? xAxisTitle,
  String? yAxisTitle,
  bool plotVisibleOnly = true,
  CellIndex? anchorTo,
  ChartDataLabels? dataLabels,
}) => Chart(
  type: ChartType.scatter,
  anchor: anchor,
  series: series,
  title: title,
  legend: legend,
  width: width,
  height: height,
  xAxisTitle: xAxisTitle,
  yAxisTitle: yAxisTitle,
  plotVisibleOnly: plotVisibleOnly,
  anchorTo: anchorTo,
  dataLabels: dataLabels,
);