PieChart<D> constructor

const PieChart<D>(
  1. List<Series<dynamic, D>> seriesList, {
  2. Key? key,
  3. bool? animate,
  4. Duration? animationDuration,
  5. ArcRendererConfig<D>? defaultRenderer,
  6. List<ChartBehavior<D>>? behaviors,
  7. List<SelectionModelConfig<D>>? selectionModels,
  8. RTLSpec? rtlSpec,
  9. LayoutConfig? layoutConfig,
  10. 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,
});