DrawChart

fun DrawChart(modifier: Modifier, plotType: PlotType, pieChartData: PieChartData, pieChartConfig: PieChartConfig, onSliceClick: (PieChartData.Slice) -> Unit = {})

Wrapper compose method for drawing Pie Chart and Donut chart.

Parameters

modifier

: All modifier related property

plotType

: Type of the chart (Pie or Donut)

pieChartData

: data list for the pie chart

onSliceClick

: Callback when any slice is clicked.