HorizontalDimensions

Holds information on a Chart’s horizontal dimensions.

Inheritors

Properties

Link copied to clipboard
open val endPadding: Float

The total end padding (in pixels).

Link copied to clipboard
open val padding: Float

The total horizontal padding (in pixels).

Link copied to clipboard

The scalable part of the distance between the end of the content area and the last entry (in pixels).

Link copied to clipboard

The total scalable horizontal padding (in pixels).

Link copied to clipboard

The scalable part of the distance between the start of the content area and the first entry (in pixels).

Link copied to clipboard

The total start padding (in pixels).

Link copied to clipboard

The unscalable part of the distance between the end of the content area and the last entry (in pixels).

Link copied to clipboard

The total unscalable horizontal padding (in pixels).

Link copied to clipboard

The unscalable part of the distance between the start of the content area and the first entry (in pixels).

Link copied to clipboard
abstract val xSpacing: Float

The distance between neighboring major entries (in pixels). This can be scaled.

Functions

Link copied to clipboard
open fun getContentWidth(maxMajorEntryCount: Int): Float

Given the chart’s maximum number of major entries, calculates the width of the Chart’s content (in pixels).

Link copied to clipboard
open fun getScalableContentWidth(maxMajorEntryCount: Int): Float

Given the chart’s maximum number of major entries, calculates the width of the Chart’s scalable content (in pixels).

Link copied to clipboard

Creates a new HorizontalDimensions instance by multiplying this one’s scalable values by the given factor.