Label Properties
Usage
In every chart you can set properties of the labels (Apr, Jan, ...)
Property | Type | Default | Description |
---|---|---|---|
enabled |
Boolean | true |
specifies labels visibility |
textStyle |
TextStyle | TextStyle.Default |
specifies label textStyle |
verticalPadding |
Dp | 12.dp |
specifies vertical padding of labels area |
labels |
List |
emptyList() |
overrides the chart labels |
builder |
Composable Function | null |
build the every label component |
rotation |
LabelProperties.Rotation | LabelProperties.Rotation() |
manage the labels rotation on size conflicts |
Example
Label Rotation
Property | Type | Default | Description |
---|---|---|---|
mode |
Rotation.Mode | Mode.IfNecessary |
specifies rotation mode |
degree |
Float | -45f |
specifies rotation degree |
padding |
Dp? | null |
specifies padding of rotated labels |