AxisLabelStyle

data class AxisLabelStyle(val visible: Boolean, val color: Color, val size: TextUnit, val maxCount: Int?)(source)

Axis label configuration shared by Cartesian charts.

Constructors

Link copied to clipboard
constructor(visible: Boolean, color: Color, size: TextUnit, maxCount: Int?)

Properties

Link copied to clipboard

The label color.

Link copied to clipboard

The most labels to show, or null to let the chart choose. Labels are evenly spaced and never overlap, so a chart shows fewer labels when maxCount would not fit. X-axis labels start at the first item and count per screen while the chart scrolls; null shows as many as fit. Y-axis labels run from the lowest to the highest value; null shows up to five. A set count must be in 2..1000.

Link copied to clipboard

Label text size: finite, positive sp, at most 16,384 pixels. Invalid size or maxCount shows an error even when axes or labels are hidden.

Link copied to clipboard

Whether the labels are visible.