PieSeries constructor

PieSeries(
  1. List<PieData> data, {
  2. List<SNumber> center = const [SNumber.percent(50), SNumber.percent(50)],
  3. SNumber innerRadius = const SNumber.percent(15),
  4. SNumber outerRadius = const SNumber.percent(90),
  5. double offsetAngle = 0,
  6. double corner = 0,
  7. RoseType roseType = RoseType.radius,
  8. double angleGap = 0,
  9. StyleFun<PieData, LabelStyle>? labelStyleFun,
  10. bool clockWise = true,
  11. CircleAlign labelAlign = CircleAlign.inside,
  12. PieAnimatorStyle animatorStyle = PieAnimatorStyle.expandScale,
  13. required StyleFun<PieData, AreaStyle> areaStyleFun,
  14. SNumber leftMargin = SNumber.zero,
  15. SNumber topMargin = SNumber.zero,
  16. SNumber rightMargin = SNumber.zero,
  17. SNumber bottomMargin = SNumber.zero,
  18. SNumber? width,
  19. SNumber? height,
  20. CoordSystem? coordSystem,
  21. int calendarIndex = 0,
  22. ToolTip? tooltip,
  23. AnimatorProps? animation,
  24. bool touch = true,
  25. bool clip = true,
  26. int z = 0,
})

Implementation

PieSeries(
  this.data, {
  this.center = const [SNumber.percent(50), SNumber.percent(50)],
  this.innerRadius = const SNumber.percent(15),
  this.outerRadius = const SNumber.percent(90),
  this.offsetAngle = 0,
  this.corner = 0,
  this.roseType = RoseType.radius,
  this.angleGap = 0,
  this.labelStyleFun,
  this.clockWise = true,
  this.labelAlign = CircleAlign.inside,
  this.animatorStyle = PieAnimatorStyle.expandScale,
  required this.areaStyleFun,
  super.leftMargin,
  super.topMargin,
  super.rightMargin,
  super.bottomMargin,
  super.width,
  super.height,
  super.coordSystem,
  super.calendarIndex,
  super.tooltip,
  super.animation,
  super.touch,
  super.clip,
  super.z,
}) : super(
        xAxisIndex: -1,
        yAxisIndex: -1,
        parallelIndex: -1,
        radarIndex: -1,
        polarAxisIndex: -1,
      );