PieSeries constructor
PieSeries(
- List<
PieData> data, { - List<
SNumber> center = const [SNumber.percent(50), SNumber.percent(50)], - SNumber innerRadius = const SNumber.percent(15),
- SNumber outerRadius = const SNumber.percent(90),
- double offsetAngle = 0,
- double corner = 0,
- RoseType roseType = RoseType.radius,
- double angleGap = 0,
- StyleFun<
PieData, LabelStyle> ? labelStyleFun, - bool clockWise = true,
- CircleAlign labelAlign = CircleAlign.inside,
- PieAnimatorStyle animatorStyle = PieAnimatorStyle.expandScale,
- required StyleFun<
PieData, AreaStyle> areaStyleFun, - SNumber leftMargin = SNumber.zero,
- SNumber topMargin = SNumber.zero,
- SNumber rightMargin = SNumber.zero,
- SNumber bottomMargin = SNumber.zero,
- SNumber? width,
- SNumber? height,
- CoordSystem? coordSystem,
- int calendarIndex = 0,
- ToolTip? tooltip,
- AnimatorProps? animation,
- bool touch = true,
- bool clip = true,
- 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,
);