LineCartesianLayer

Draws the content of line charts.

Constructors

Link copied to clipboard
constructor(lineProvider: LineCartesianLayer.LineProvider, pointSpacingDp: Float = Defaults.POINT_SPACING, rangeProvider: CartesianLayerRangeProvider = CartesianLayerRangeProvider.auto(), verticalAxisPosition: Axis.Position.Vertical? = null, drawingModelInterpolator: CartesianLayerDrawingModelInterpolator<LineCartesianLayerDrawingModel.PointInfo, LineCartesianLayerDrawingModel> = CartesianLayerDrawingModelInterpolator.default())

Types

Link copied to clipboard
interface AreaFill

Draws a LineCartesianLayer line’s area fill.

Link copied to clipboard
object Companion

Provides access to Line and Point factory functions.

Link copied to clipboard
open class Line(fill: LineCartesianLayer.LineFill, val stroke: LineCartesianLayer.LineStroke = LineStroke.Continuous(), areaFill: LineCartesianLayer.AreaFill? = fill.getDefaultAreaFill(), val pointProvider: LineCartesianLayer.PointProvider? = null, val pointConnector: LineCartesianLayer.PointConnector = PointConnector.cubic(), val dataLabel: TextComponent? = null, val dataLabelVerticalPosition: VerticalPosition = VerticalPosition.Top, val dataLabelValueFormatter: CartesianValueFormatter = CartesianValueFormatter.decimal(), val dataLabelRotationDegrees: Float = 0.0f)

Defines the appearance of a line in a line chart.

Link copied to clipboard
interface LineFill

Draws a LineCartesianLayer line’s fill.

Link copied to clipboard
fun interface LineProvider

Provides Lines to LineCartesianLayers.

Link copied to clipboard
sealed interface LineStroke

Defines the style of a LineCartesianLayer line’s stroke.

Link copied to clipboard
data class Point(component: Component, val sizeDp: Float = Defaults.POINT_SIZE)

Defines a point style.

Link copied to clipboard
fun interface PointConnector

Connects a LineCartesianLayer line’s points, thus defining its shape.

Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun copy(lineProvider: LineCartesianLayer.LineProvider = this.lineProvider, pointSpacingDp: Float = this.pointSpacingDp, rangeProvider: CartesianLayerRangeProvider = this.rangeProvider, verticalAxisPosition: Axis.Position.Vertical? = this.verticalAxisPosition, drawingModelInterpolator: CartesianLayerDrawingModelInterpolator<LineCartesianLayerDrawingModel.PointInfo, LineCartesianLayerDrawingModel> = this.drawingModelInterpolator): LineCartesianLayer

Creates a new LineCartesianLayer based on this one.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Prepares the CartesianLayer for a difference animation.

Link copied to clipboard
open suspend override fun transform(extraStore: MutableExtraStore, fraction: Float)

Carries out the pending difference animation.

Link copied to clipboard

Updates horizontalDimensions to match this CartesianLayer’s dimensions.

Link copied to clipboard
open override fun updateInsets(context: CartesianMeasuringContext, horizontalDimensions: HorizontalDimensions, model: LineCartesianLayerModel, insets: Insets)

Ensures that there are sufficient insets.

Link copied to clipboard

Updates ranges in accordance with model.