Stacked Area Chart
fun StackedAreaChart(data: ChartData, modifier: Modifier = Modifier, style: StackedAreaChartStyle = StackedAreaChartDefaults.style(), title: String? = null, selection: ChartSelection = rememberChartSelection(), interactionEnabled: Boolean = true, animateOnStart: Boolean = true, selectedValueFormatter: ChartValueFormatter = StackedAreaChartDefaults.selectedValueFormatter, axisValueFormatter: ChartValueFormatter = StackedAreaChartDefaults.axisValueFormatter, subtitle: String? = null)(source)
Displays absolute stacked areas from one or more aligned series sharing common X categories. selectedValueFormatter formats the selected values; axisValueFormatter formats Y ticks.
subtitle appears below the title and stays visible while a value is selected.
At least one series of at least two finite, nonnegative values is required. Series must have equal lengths, and each stacked total must be finite. Categories may be empty; otherwise their count must match the values in each series. Invalid data renders validation errors in place of the chart.