HorizontalLayout

sealed interface HorizontalLayout

Defines how a chart’s content is positioned horizontally. This affects the Chart and the HorizontalAxis instances.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class FullWidth(val scalableStartPaddingDp: Float = 0.0f, val scalableEndPaddingDp: Float = 0.0f, val unscalableStartPaddingDp: Float = 0.0f, val unscalableEndPaddingDp: Float = 0.0f) : HorizontalLayout

When this is applied, the Chart’s content takes up the Chart’s entire width (unless padding is added). HorizontalAxis instances display a tick and a guideline for each label, with the tick, guideline, and label vertically centered relative to one another. scalableStartPaddingDp, scalableEndPaddingDp, unscalableStartPaddingDp, and unscalableEndPaddingDp control the amount of empty space at the start and end of the Chart. Scalable padding values are multiplied by the zoom factor, unlike unscalable ones.

Link copied to clipboard

When this is applied, the Chart centers each major entry in a designated segment. Some empty space is visible at the start and end of the Chart. HorizontalAxis instances display ticks and guidelines at the edges of the segments.