AreaBaseline

sealed interface AreaBaseline<X, Y>

Specifies baseline coordinates for drawing filled areas on line charts.

Inheritors

Types

Link copied to clipboard
data class ArbitraryLine<X, Y>(val values: List<Point<X, Y>>) : AreaBaseline<X, Y>

Specifies an arbitrary line to which the area should be drawn. For use with StairstepPlot, the number of values and their x-axis coordinates must match the data provided to StairstepPlot

Link copied to clipboard
data class ConstantLine<X, Y>(val value: Y) : AreaBaseline<X, Y>

Specifies that the area should be drawn to a constant y-axis value across the x-axis range.

Link copied to clipboard
data class CubicBezierLine<X, Y>(val values: List<Point<X, Y>>, val control: CubicBezierControlPointCalculator = catmullRomControlPoints(DefaultTau)) : AreaBaseline<X, Y>

Specifies a cubic Bézier curve to which the area should be drawn. Cannot be used with StairstepPlot.

Link copied to clipboard
data class HorizontalLine<X, Y>(val value: Y) : AreaBaseline<X, Y>