diff --git a/README.md b/README.md index 71624da..f1fe5fb 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ ### Gradle Setup -[![Maven Central](https://img.shields.io/maven-central/v/io.github.ehsannarmani/compose-charts?color=4caf50&label=Latest%20Release&v=9)](https://central.sonatype.com/artifact/io.github.ehsannarmani/compose-charts/overview) +[![Maven Central](https://img.shields.io/maven-central/v/io.github.ehsannarmani/compose-charts?color=4caf50&label=Latest%20Release&v=10)](https://central.sonatype.com/artifact/io.github.ehsannarmani/compose-charts/overview) ```gradle dependencies { implementation ("io.github.ehsannarmani:compose-charts:latest_version") @@ -676,13 +676,14 @@ val lineProperties = LineProperties( ### Labels: `LabelProperties` > 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()` | In line charts, specifies chart labels -| `rotationDegreeOnSizeConflict` | Float | `-45` | rotation degree of label on size confilict with other labels (See) +| 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()` | In line charts, specifies chart labels +| `rotationDegreeOnSizeConflict` | Float | `-45` | rotation degree of label on size confilict with other labels (See) +| `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) > [!NOTE] > Example of label rotation degree