Line
open class Line(fill: LineCartesianLayer.LineFill, val thicknessDp: Float = Defaults.LINE_SPEC_THICKNESS_DP, areaFill: LineCartesianLayer.AreaFill? = fill.getDefaultAreaFill(), cap: Paint.Cap = Paint.Cap.ROUND, 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.
Parameters
cap
the stroke cap.
Constructors
Link copied to clipboard
constructor(fill: LineCartesianLayer.LineFill, thicknessDp: Float = Defaults.LINE_SPEC_THICKNESS_DP, areaFill: LineCartesianLayer.AreaFill? = fill.getDefaultAreaFill(), cap: Paint.Cap = Paint.Cap.ROUND, pointProvider: LineCartesianLayer.PointProvider? = null, pointConnector: LineCartesianLayer.PointConnector = PointConnector.cubic(), dataLabel: TextComponent? = null, dataLabelVerticalPosition: VerticalPosition = VerticalPosition.Top, dataLabelValueFormatter: CartesianValueFormatter = CartesianValueFormatter.decimal(), dataLabelRotationDegrees: Float = 0.0f)
Properties
Link copied to clipboard
used for the data labels.
Link copied to clipboard
the data-label rotation (in degrees).
Link copied to clipboard
formats the data-label values.
Link copied to clipboard
the vertical position of the data labels relative to the points.
Link copied to clipboard
connects the line’s points, thus defining its shape.
Link copied to clipboard
provides the Points.
Link copied to clipboard
the line thickness (in dp).
Functions
Link copied to clipboard
fun draw(context: CartesianDrawingContext, path: Path, fillCanvas: Canvas, verticalAxisPosition: Axis.Position.Vertical?)
Draws the line.