HorizontalAxis
Draws horizontal axes. See the BaseAxis documentation for descriptions of the inherited properties.
Types
Link copied to clipboard
object Companion
Houses HorizontalAxis factory functions.
Link copied to clipboard
interface ItemPlacer
Determines for what x values a HorizontalAxis displays labels, ticks, and guidelines.
Properties
Link copied to clipboard
determines for what x values the HorizontalAxis displays labels, ticks, and guidelines.
Functions
Link copied to clipboard
fun copy(line: LineComponent? = this.line, label: TextComponent? = this.label, labelRotationDegrees: Float = this.labelRotationDegrees, valueFormatter: CartesianValueFormatter = this.valueFormatter, tick: LineComponent? = this.tick, tickLengthDp: Float = this.tickLengthDp, guideline: LineComponent? = this.guideline, itemPlacer: HorizontalAxis.ItemPlacer = this.itemPlacer, size: BaseAxis.Size = this.size, titleComponent: TextComponent? = this.titleComponent, title: CharSequence? = this.title): HorizontalAxis<P>
Creates a new HorizontalAxis based on this one.
Link copied to clipboard
open override fun drawOverLayers(context: CartesianDrawingContext, axisDimensions: Map<Axis.Position, AxisDimensions>)
Draws content over the CartesianLayers.
Link copied to clipboard
open override fun drawUnderLayers(context: CartesianDrawingContext, axisDimensions: Map<Axis.Position, AxisDimensions>)
Draws content under the CartesianLayers.
Link copied to clipboard
open override fun updateAxisDimensions(context: CartesianDrawingContext, axisDimensions: MutableAxisDimensions)
Updates the chart’s MutableAxisDimensions instance.
Link copied to clipboard
open override fun updateLayerDimensions(context: CartesianMeasuringContext, layerDimensions: MutableCartesianLayerDimensions)
Updates the chart’s MutableCartesianLayerDimensions instance.
Link copied to clipboard
open override fun updateLayerMargins(context: CartesianMeasuringContext, layerMargins: CartesianLayerMargins, layerDimensions: CartesianLayerDimensions, model: CartesianChartModel)
Ensures that there are sufficient CartesianLayer-area margins.