Size

sealed class Size

Determines how a BaseAxis sizes itself.

Inheritors

Types

Link copied to clipboard
class Auto(val minSizeDp: Float = 0.0f, val maxSizeDp: Float = Float.MAX_VALUE) : BaseAxis.Size

The axis will measure itself and use as much space as it needs, but no less than minSizeDp, and no more than maxSizeDp.

Link copied to clipboard
object Companion

Provides access to BaseAxis.Size factory functions.

Link copied to clipboard
class Exact(val sizeDp: Float) : BaseAxis.Size

The axis size will be exactly sizeDp.

Link copied to clipboard
class Fraction(val fraction: Float) : BaseAxis.Size

The axis will use a fraction of the available space.

Link copied to clipboard
class Text(val text: CharSequence) : BaseAxis.Size

The axis will measure the size of its label component (label) for the given String (text), and it will use this size. In the case of VerticalAxis, the width of the axis line and the tick length will also be considered.