Interpolator

interface Interpolator

Interpolates between a LineCartesianLayer line’s points, defining its shape.

Types

Link copied to clipboard
object Companion

Houses Interpolator singletons and factory functions.

Properties

Link copied to clipboard
open val visiblePadding: Int?

Returns the number of extra points required on either side of the visible range, beyond the standard single extra point already included in visibleIndexRange. null indicates that the full series should be provided.

Functions

Link copied to clipboard

Returns the y-value range of the interpolated curve for the given y values. This may be wider than the range of y if the interpolation overshoots (e.g., for splines). The default implementation returns the range of y.

Link copied to clipboard
abstract fun interpolate(context: CartesianDrawingContext, path: Path, points: List<Offset>, visibleIndexRange: IntRange)

Draws path through points.