Draw Chart
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
plot Type
: Type of the chart (Pie or Donut)
pie Chart Data
: data list for the pie chart
on Slice Click
: Callback when any slice is clicked.