Pie Chart
Creates a Pie Chart or, optionally, a Donut Chart if holeSize is nonZero, with optional hole content to place at the center of the donut hole. Pie slices are drawn starting at -90 degrees (top center), progressing clockwise around the pie. Each slice occupies a fraction of the overall pie according to its data value relative to the sum of all values.
Parameters
The data values for each pie slice
A provider of label offsets that can be used to implement different label placement strategies. See the PieChart override for a version that uses labels placed around the circumference of the pie.
Compose Modifiers to be applied to the overall PieChart
Composable for a pie slice.
Composable for a pie slice label placed around the perimeter of the pie
Composable for label connectors connecting the pie slice to the label
A relative size for an inner hole of the pie, creating a donut chart, with a value between 0 and 1.
Optional content that may be placed in the space of the donut hole.
Minimum diameter allowed for the pie.
Maximum diameter allowed for the pie. May be Infinity but not Unspecified.
If true, will force the pie to be centered within its parent, by adjusting (decreasing) the pie size to accommodate label sizes and positions. If false, will maximize the pie diameter.
Specifies the animation to use when the pie chart is first drawn.
Creates a Pie Chart or, optionally, a Donut Chart if holeSize is nonZero, with optional hole content to place at the center of the donut hole. Pie slices are drawn starting at -90 degrees (top center), progressing clockwise around the pie. Each slice occupies a fraction of the overall pie according to its data value relative to the sum of all values. Places labels around the pie at a minimum distance set by labelSpacing.
Parameters
The data values for each pie slice
Compose Modifiers to be applied to the overall PieChart
Composable for a pie slice.
Composable for a pie slice label placed around the perimeter of the pie
Composable for label connectors connecting the pie slice to the label
A value greater than 1 specifying the distance from the center of the pie at which to place the labels relative to the overall diameter of the pie, where a value of 1 is at the outer edge of the pie. Values between 1.05 and 1.4 tend to work well depending on the size of the labels and overall pie diameter.
A relative size for an inner hole of the pie, creating a donut chart, with a value between 0 and 1.
Optional content that may be placed in the space of the donut hole.
Minimum diameter allowed for the pie.
Maximum diameter allowed for the pie. May be Infinity but not Unspecified.
If true, will force the pie to be centered within its parent, by adjusting (decreasing) the pie size to accommodate label sizes and positions. If false, will maximize the pie diameter.
Specifies the animation to use when the pie chart is first drawn.