AreaPlot

fun <X, Y> XYGraphScope<X, Y>.AreaPlot(data: List<Point<X, Y>>, areaBaseline: AreaBaseline<X, Y>, areaStyle: AreaStyle, modifier: Modifier = Modifier, lineStyle: LineStyle? = null, symbol: @Composable HoverableElementAreaScope.(Point<X, Y>) -> Unit? = null, animationSpec: AnimationSpec<Float> = KoalaPlotTheme.animationSpec)

An area plot that draws data as points and lines with a filled area to a baseline.

Parameters

X

The type of the x-axis values

Y

The type of the y-axis values

data

Data series to plot.

lineStyle

Style to use for the line that connects the data points. If null, no line is drawn.

symbol

Composable for the symbol to be shown at each data point.

areaStyle

Style to use for filling the area between the line and a baseline. If null, no area will be drawn.

areaBaseline

Baseline location for the area. If areaBaseline is an AreaBaseline.ArbitraryLine then it is recommended that the first and last x-axis values for the baseline match those in the data so the left and right area bounds will be vertical.

modifier

Modifier for the plot.