PieData constructor
PieData({
- bool visible = true,
- ChartRotation rotation = ChartRotation.d0,
- ChartFlip flip = ChartFlip.none,
- Offset origin = Offset.zero,
- IChartLayout? layout,
- bool? crop,
- required List<
DataPoint> pies, - ThicknessData thickness = const ThicknessData(size: 2.0),
- double pieOffset = 0.0,
- double padAngle = 0.0,
- ThicknessData? border,
- double? borderRadius,
- IDataPointStyle? pointStyle,
Pie in the standard mathematical (Cartesian) coordinate system.
By default:
- Zero Y (0°): Starts at the 3 o'clock position (positive X-axis).
- Direction: Rotates anticlockwise.
Implementation
PieData({
this.visible = true,
this.rotation = ChartRotation.d0,
this.flip = ChartFlip.none,
this.origin = Offset.zero,
this.layout,
this.crop,
required this.pies,
this.thickness = const ThicknessData(size: 2.0),
this.pieOffset = 0.0,
this.padAngle = 0.0,
this.border,
this.borderRadius,
this.pointStyle,
});