CircleChart

fun CircleChart(data: () -> List<CircleData>, modifier: Modifier = Modifier, circleChartConfig: CircleChartConfig = CircleChartConfig.default(), onCircleClick: (CircleData) -> Unit = {})

A composable function that displays a circle chart based on the provided data.

Parameters

data

A lambda function that returns a list of CircleData objects representing the data to be displayed.

modifier

A Modifier to be applied to the Canvas.

circleChartConfig

Configuration for the circle chart, including whether to show the end indicator and the starting position.

onCircleClick

A lambda function to handle click events on the circle. It receives the corresponding CircleData as parameters.