LinePlot

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

A line plot that draws data as points and lines on an XYGraph.

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.

modifier

Modifier for the plot.