|
36 | 36 |
|
37 | 37 | ### Gradle Setup |
38 | 38 |
|
39 | | -[](https://central.sonatype.com/artifact/io.github.ehsannarmani/compose-charts/overview) |
| 39 | +[](https://central.sonatype.com/artifact/io.github.ehsannarmani/compose-charts/overview) |
40 | 40 | ```gradle |
41 | 41 | dependencies { |
42 | 42 | implementation ("io.github.ehsannarmani:compose-charts:latest_version") |
@@ -676,13 +676,14 @@ val lineProperties = LineProperties( |
676 | 676 | ### Labels: `LabelProperties` |
677 | 677 | > Usage: In every chart you can set properties of the labels (Apr, Jan, ...) |
678 | 678 |
|
679 | | -| Property | Type | Default | Description | |
680 | | -|--------------------------------|--------------|---------------------|--------------------------------------------------------------------| |
681 | | -| `enabled` | Boolean | `true` | specifies labels visibility |
682 | | -| `textStyle` | TextStyle | `TextStyle.Default` | specifies label textStyle |
683 | | -| `verticalPadding` | Dp | `12.dp` | specifies vertical padding of labels area |
684 | | -| `labels` | List<String> | `emptyList()` | In line charts, specifies chart labels |
685 | | -| `rotationDegreeOnSizeConflict` | Float | `-45` | rotation degree of label on size confilict with other labels (See) |
| 679 | +| Property | Type | Default | Description | |
| 680 | +|--------------------------------|--------------|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 681 | +| `enabled` | Boolean | `true` | specifies labels visibility |
| 682 | +| `textStyle` | TextStyle | `TextStyle.Default` | specifies label textStyle |
| 683 | +| `verticalPadding` | Dp | `12.dp` | specifies vertical padding of labels area |
| 684 | +| `labels` | List<String> | `emptyList()` | In line charts, specifies chart labels |
| 685 | +| `rotationDegreeOnSizeConflict` | Float | `-45` | rotation degree of label on size confilict with other labels (See) |
| 686 | +| `forceRotation` | Boolean | `-` | specifies force rotation for labels (in false mode, labels rotate only when there is a label whose width is more than 50% different from the others) |
686 | 687 |
|
687 | 688 | > [!NOTE] |
688 | 689 | > Example of label rotation degree |
|
0 commit comments