Chart.pie constructor
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,
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,
);