Pie Chart
fun PieChart(data: () -> List<PieChartData>, modifier: Modifier = Modifier, isDonutChart: Boolean = false, onPieChartSliceClick: (PieChartData) -> Unit = {})
Composable function to draw a Pie Chart.
Parameters
data
Lambda function that returns a list of PieChartData representing the slices of the pie chart.
modifier
Modifier to be applied to the Canvas.
is Donut Chart
Boolean indicating if the chart should be a donut chart.
on Pie Chart Slice Click
Lambda function to be called when a slice of the pie chart is clicked.