Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsannarmani committed Sep 21, 2024
1 parent 1b04ccd commit 0bb1e3f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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<String> | `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<String> | `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
Expand Down

0 comments on commit 0bb1e3f

Please sign in to comment.