Pie Chart
A composable function that displays a Pie Chart.
interactionEnabled disables all user controls (tap-to-select and the auto-deselect timeout), but programmatic selection still renders. animateOnStart controls the initial reveal, not subsequent update animations.
Parameters
The chart data to display. Each PieSlice renders as a slice with its own label, value, and optional color. Slices without a color fall back to shades generated from the style's base color.
The modifier to be applied to the chart. Also forwarded to the error branch when the data fails validation.
The style to be applied to the chart. If not provided, the default style will be used.
Optional chart title displayed when no slice is selected.
The hoisted selection state. Use rememberChartSelection for interactive charts or io.github.hdcharts.charts.model.staticChartSelection for deterministic preset selections.
When false, disables tap-to-select and the auto-deselect timeout.
When false, renders the chart in its final state without the initial reveal animation.