StackedAreaPlot

fun <X, Y> XYGraphScope<X, Y>.StackedAreaPlot(data: List<StackedAreaPlotEntry<X, Y>>, styles: List<StackedAreaStyle>, firstBaseline: AreaBaseline.ConstantLine<X, Y>, modifier: Modifier = Modifier, animationSpec: AnimationSpec<Float> = KoalaPlotTheme.animationSpec)

A Stacked Area Plot is like a line plot but with filled areas between lines, and where each successive line is added to all of the lines before it, so they stack.

Parameters

X

Data type of x-axis values

Y

Data type of y-axis values

data

List of MultiPoint data items for the plot. Each MultiPoint must hold the same number of y-axis values.

styles

A list of StackedAreaStyles to be applied to each series in the data. The size of this list must match the number of data series provided by data

firstBaseline

Provides the value for the bottom of the first line's area, in units of Y. Typically this will be the 0 value for Y's data type. Note: If the y-axis is logarithmic this value cannot be 0.

animationSpec

The animation to provide to the graph when it is created or changed.