Chart.pie constructor

Chart.pie({
  1. required CellIndex anchor,
  2. required ChartSeries series,
  3. String? categories,
  4. String? title,
  5. LegendPosition legend = LegendPosition.right,
  6. int width = 480,
  7. int height = 288,
  8. bool plotVisibleOnly = true,
  9. CellIndex? anchorTo,
})

A pie chart (uses the first series only).

Implementation

factory Chart.pie({
  required CellIndex anchor,
  required ChartSeries series,
  String? categories,
  String? title,
  LegendPosition legend = LegendPosition.right,
  int width = 480,
  int height = 288,
  bool plotVisibleOnly = true,
  CellIndex? anchorTo,
}) => Chart(
  type: ChartType.pie,
  anchor: anchor,
  series: [series],
  categories: categories,
  title: title,
  legend: legend,
  width: width,
  height: height,
  plotVisibleOnly: plotVisibleOnly,
  anchorTo: anchorTo,
);