CubicBezierLinePlot

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

A line plot that draws a smooth, curved line that passes through each data point.

This plot is ideal for representing continuous data sets where a visually smooth path is desired, such as in signal processing or natural phenomena graphs. It differs from a standard LinePlot2 by using cubic Bézier curves between points instead of straight lines.

Parameters

X

The type of the x-axis values.

Y

The type of the y-axis values.

data

The series of Points to be plotted.

control

A CubicBezierControlPointCalculator that defines the curve's shape between points. Defaults to a Catmull-Rom implementation.

lineStyle

Style for the line connecting data points. If null, no line is drawn.

symbol

An optional composable used to render a symbol at each data point.

animationSpec

The AnimationSpec to use for animating the plot.

modifier

Modifier for the plot.