Multi Line Chart
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(), onValueChange: (List<LineData>) -> Unit = {})
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.
smooth Line Curve
A boolean indicating whether the lines should be drawn with smooth curves.
show Filled Area
A boolean indicating whether the area under the lines should be filled.
show Line Stroke
A boolean indicating whether the lines should be stroked.
label Config
A LabelConfig object for configuring the labels on the chart.
chart Config
A LineChartConfig object for configuring the chart's appearance and behavior.
Throws
if both showFilledArea and showLineStroke are false.