ChartyLabelTextConfig

data class ChartyLabelTextConfig(val textSize: TextUnit, val textColor: Color, val fontStyle: FontStyle? = null, val fontWeight: FontWeight? = null, val fontFamily: FontFamily? = null, val indicatorSize: Dp = 10.dp, val maxLine: Int = 1, val overflow: TextOverflow = TextOverflow.Ellipsis)

Represents the configuration for the text labels in a chart.

Constructors

Link copied to clipboard
constructor(textSize: TextUnit, textColor: Color, fontStyle: FontStyle? = null, fontWeight: FontWeight? = null, fontFamily: FontFamily? = null, indicatorSize: Dp = 10.dp, maxLine: Int = 1, overflow: TextOverflow = TextOverflow.Ellipsis)

Properties

Link copied to clipboard
val fontFamily: FontFamily? = null

The family of the font (e.g., serif). Defaults to null.

Link copied to clipboard
val fontStyle: FontStyle? = null

The style of the font (e.g., italic). Defaults to null.

Link copied to clipboard
val fontWeight: FontWeight? = null

The weight of the font (e.g., bold). Defaults to null.

Link copied to clipboard

The size of the indicator associated with the labels. Defaults to 10.dp.

Link copied to clipboard
val maxLine: Int = 1

The maximum number of lines the label can span. Defaults to 1.

Link copied to clipboard

The behavior when the text exceeds the available space (e.g., ellipsis). Defaults to TextOverflow.Ellipsis.

Link copied to clipboard

The color of the text labels.

Link copied to clipboard

The size of the text labels.