Vertical

interface Vertical

An AxisItemPlacer subinterface for VerticalAxis instances.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun getBottomVerticalAxisInset(verticalLabelPosition: VerticalAxis.VerticalLabelPosition, maxLabelHeight: Float, maxLineThickness: Float): Float

Returns the bottom inset required by the VerticalAxis.

Link copied to clipboard

Returns, as a list, the y values for which the VerticalAxis is to create labels and measure their heights during the measuring phase. The height of the tallest label is passed to getWidthMeasurementLabelValues and getLabelValues.

Link copied to clipboard
abstract fun getLabelValues(context: ChartDrawContext, axisHeight: Float, maxLabelHeight: Float, position: AxisPosition.Vertical): List<Float>

Returns, as a list, the y values for which labels are to be displayed.

Link copied to clipboard
open fun getLineValues(context: ChartDrawContext, axisHeight: Float, maxLabelHeight: Float, position: AxisPosition.Vertical): List<Float>?

Returns, as a list, the y values for which ticks and guidelines are to be displayed.

Link copied to clipboard
open fun getShiftTopLines(chartDrawContext: ChartDrawContext): Boolean

Returns a boolean indicating whether to shift the lines whose y values are equal to ChartValues.maxY, if such lines are present, such that they’re immediately above the Chart’s bounds. If the chart has a top axis, the shifted tick will then be aligned with this axis, and the shifted guideline will be hidden.

Link copied to clipboard
abstract fun getTopVerticalAxisInset(verticalLabelPosition: VerticalAxis.VerticalLabelPosition, maxLabelHeight: Float, maxLineThickness: Float): Float

Returns the top inset required by the VerticalAxis.

Link copied to clipboard
abstract fun getWidthMeasurementLabelValues(context: MeasureContext, axisHeight: Float, maxLabelHeight: Float, position: AxisPosition.Vertical): List<Float>

Returns, as a list, the y values for which the VerticalAxis is to create labels and measure their widths during the measuring phase. This affects how much horizontal space the VerticalAxis requests.