AxisRenderer

Defines the minimal set of properties and functions required by other parts of the library to draw an axis.

Inheritors

Properties

Link copied to clipboard
abstract val position: Position

Defines the position of the axis relative to the Chart.

Functions

Link copied to clipboard
abstract fun drawAboveChart(context: ChartDrawContext)

Called after the Chart is drawn. Implementations can use this function to draw content above the Chart.

Link copied to clipboard
abstract fun drawBehindChart(context: ChartDrawContext)

Called before the Chart is drawn. Implementations should rely on this function to draw themselves, unless they need to draw something above the Chart.

Link copied to clipboard
abstract fun setRestrictedBounds(vararg bounds: RectF?)

The bounds (RectF) passed here define the area where the AxisRenderer shouldn’t draw anything.

Link copied to clipboard
abstract fun updateHorizontalDimensions(context: MeasureContext, horizontalDimensions: MutableHorizontalDimensions)

Updates the chart’s MutableHorizontalDimensions instance.