PointChart

fun PointChart(data: () -> List<PointData>, modifier: Modifier = Modifier, labelConfig: LabelConfig = LabelConfig.default(), colorConfig: PointChartColorConfig = PointChartColorConfig.default(), chartConfig: PointChartConfig = PointChartConfig(), target: Float? = null, targetConfig: TargetConfig = TargetConfig.default(), onPointClick: (Int, PointData) -> Unit = { _, _ -> })

Composable function to display a point chart.

Parameters

data

A lambda function that returns a list of PointData objects representing the data points for the chart.

modifier

The modifier to be applied to the chart.

labelConfig

The configuration for the labels, including whether to show labels on the axes.

colorConfig

The color configuration for the chart.

chartConfig

The configuration for the chart, including line widths and path effects.

target

An optional target value to be displayed on the chart.

targetConfig

The configuration for the target line.

onPointClick

A lambda function to be called when a point is clicked, with the index and data of the clicked point.