MultiLineChart

fun MultiLineChart(data: () -> List<MultiLineData>, modifier: Modifier = Modifier, smoothLineCurve: Boolean = true, showFilledArea: Boolean = false, target: Float? = null, targetConfig: TargetConfig = TargetConfig.default(), showLineStroke: Boolean = true, labelConfig: LabelConfig = LabelConfig.default(), chartConfig: LineChartConfig = LineChartConfig())

A composable function that renders a multi-line chart.

Parameters

data

A lambda function that returns a list of MultiLineData representing the data points and color configuration for each line.

modifier

A Modifier for customizing the layout or drawing behavior of the chart.

smoothLineCurve

A boolean indicating whether the lines should be drawn with smooth curves.

showFilledArea

A boolean indicating whether the area under the lines should be filled.

showLineStroke

A boolean indicating whether the lines should be stroked.

labelConfig

A LabelConfig object for configuring the labels on the chart.

chartConfig

A LineChartConfig object for configuring the chart's appearance and behavior.

Throws

if both showFilledArea and showLineStroke are false.