PieSeries<T, D> constructor

const PieSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. CircularSeriesRendererCreatedCallback<T, D>? onRendererCreated,
  4. ChartPointInteractionCallback? onPointTap,
  5. ChartPointInteractionCallback? onPointDoubleTap,
  6. ChartPointInteractionCallback? onPointLongPress,
  7. List<T>? dataSource,
  8. ChartValueMapper<T, D>? xValueMapper,
  9. ChartValueMapper<T, num>? yValueMapper,
  10. ChartValueMapper<T, Color>? pointColorMapper,
  11. ChartShaderMapper? pointShaderMapper,
  12. ChartValueMapper<T, String>? pointRadiusMapper,
  13. ChartValueMapper<T, String>? dataLabelMapper,
  14. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  15. int startAngle = 0,
  16. int endAngle = 360,
  17. String radius = '80%',
  18. bool explode = false,
  19. bool explodeAll = false,
  20. ActivationMode explodeGesture = ActivationMode.singleTap,
  21. String explodeOffset = '10%',
  22. int? explodeIndex,
  23. double? groupTo,
  24. CircularChartGroupMode? groupMode,
  25. PointRenderMode? pointRenderMode,
  26. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  27. Color strokeColor = Colors.transparent,
  28. double strokeWidth = 2.0,
  29. double opacity = 1.0,
  30. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  31. bool enableTooltip = true,
  32. String? name,
  33. double animationDuration = 1500,
  34. double animationDelay = 0,
  35. SelectionBehavior? selectionBehavior,
  36. SortingOrder sortingOrder = SortingOrder.none,
  37. LegendIconType legendIconType = LegendIconType.seriesType,
  38. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of PieSeries class.

Implementation

const PieSeries({
  super.key,
  super.onCreateRenderer,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.dataSource,
  super.xValueMapper,
  super.yValueMapper,
  super.pointColorMapper,
  super.pointShaderMapper,
  super.pointRadiusMapper,
  super.dataLabelMapper,
  super.sortFieldValueMapper,
  super.startAngle = 0,
  super.endAngle = 360,
  super.radius = '80%',
  this.explode = false,
  this.explodeAll = false,
  this.explodeGesture = ActivationMode.singleTap,
  this.explodeOffset = '10%',
  this.explodeIndex,
  super.groupTo,
  super.groupMode,
  super.pointRenderMode,
  super.emptyPointSettings,
  Color strokeColor = Colors.transparent,
  double strokeWidth = 2.0,
  super.opacity,
  super.dataLabelSettings,
  super.enableTooltip = true,
  super.name,
  super.animationDuration,
  super.animationDelay,
  super.selectionBehavior,
  super.sortingOrder,
  super.legendIconType,
  super.initialSelectedDataIndexes,
}) : super(
        borderColor: strokeColor,
        borderWidth: strokeWidth,
      );