PieChart<D> constructor
const
PieChart<D> (
- List<
Series< seriesList, {dynamic, D> > - Key? key,
- bool? animate,
- Duration? animationDuration,
- ArcRendererConfig<
D> ? defaultRenderer, - List<
ChartBehavior< ? behaviors,D> > - List<
SelectionModelConfig< ? selectionModels,D> > - RTLSpec? rtlSpec,
- LayoutConfig? layoutConfig,
- bool defaultInteractions = true,
Creates a pie chart with the given series of data.
seriesList
The list of series to be plotted on the chart. A pie chart
typically expects a single series.
animate
Whether to animate the chart when data changes.
animationDuration
The duration of the animation when data changes.
defaultRenderer
The default renderer to use for the series. If not
provided, a default ArcRendererConfig will be used.
behaviors
A list of chart behaviors to attach to the chart.
selectionModels
A list of selection models to attach to the chart.
rtlSpec
Configures the chart for right-to-left languages.
layoutConfig
Configuration for chart layout.
defaultInteractions
Whether to add the default interactions to the
chart.
Implementation
const PieChart(
super.seriesList, {
super.key,
super.animate,
super.animationDuration,
common.ArcRendererConfig<D>? super.defaultRenderer,
super.behaviors,
super.selectionModels,
super.rtlSpec,
super.layoutConfig,
super.defaultInteractions,
});