Pie Chart
fun PieChart(dataSet: ChartDataSet, style: PieChartStyle = PieChartDefaults.style(), interactionEnabled: Boolean = true, animateOnStart: Boolean = true, selectedSliceIndex: Int = NO_SELECTION)(source)
A composable function that displays a Pie Chart.
Parameters
data Set
The data set to be displayed in the chart.
style
The style to be applied to the chart. If not provided, the default style will be used.
interaction Enabled
Enables touch interactions (tap selection). Defaults to true.
animate On Start
Enables initial chart animations. Defaults to true.
selected Slice Index
Optional preselected slice index for deterministic rendering (e.g. screenshots).