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())
Creates a LineCartesianLayer.
Types
Link copied to clipboard
interface AreaFill
Draws a LineCartesianLayer line’s area fill.
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
Provides Lines to LineCartesianLayers.
Link copied to clipboard
Defines the style of a LineCartesianLayer line’s stroke.
Link copied to clipboard
Connects a LineCartesianLayer line’s points, thus defining its shape.
Link copied to clipboard
Provides Points to LineCartesianLayers.
Properties
Link copied to clipboard
Links x values to CartesianMarker.Targets.
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 override fun prepareForTransformation(model: LineCartesianLayerModel?, ranges: CartesianChartRanges, extraStore: MutableExtraStore)
Prepares the CartesianLayer for a difference animation.
Link copied to clipboard
Carries out the pending difference animation.
Link copied to clipboard
open override fun updateHorizontalDimensions(context: CartesianMeasuringContext, horizontalDimensions: MutableHorizontalDimensions, model: LineCartesianLayerModel)
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