Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quipper/qandroidcomposechart
Simple chart library build using compose and kotlin.
https://github.com/quipper/qandroidcomposechart
android android-library chart chart-library jetpack-compose kotlin
Last synced: 3 months ago
JSON representation
Simple chart library build using compose and kotlin.
- Host: GitHub
- URL: https://github.com/quipper/qandroidcomposechart
- Owner: quipper
- License: mit
- Created: 2022-04-12T02:54:21.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-03T05:40:47.000Z (almost 2 years ago)
- Last Synced: 2023-06-27T14:50:21.991Z (over 1 year ago)
- Topics: android, android-library, chart, chart-library, jetpack-compose, kotlin
- Language: Kotlin
- Homepage:
- Size: 126 KB
- Stars: 11
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QAndroidComposeChart
Simple chart library build using compose and kotlin.### Example View
- Basic style\
![Apr-14-2022 08-28-31](https://user-images.githubusercontent.com/48426396/163296195-4c0c7a2f-440c-4f48-9e1e-6b68bcf7487d.gif)
- Curved style\
![Apr-14-2022 08-29-54](https://user-images.githubusercontent.com/48426396/163296300-feae3bef-4ea5-4457-89ed-c29133d1aa1a.gif)### **Release version** :
**1.1.0**## Gradle setup
**Step 1.** Add it in your root build.gradle at the end of repositories:
```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```**Step 2.** Add the dependency:
```
dependencies {
implementation 'com.github.quipper:QAndroidComposeChart:1.1.0'
}
```## How to use
**Step 1.** Create _ChartTheme_ for chart styling:
```
val chartTheme = ChartTheme.Builder().build()
```**Step 2.** Create _ChartData_
```
val chartData = ChartData(listOf())
```**Step 3.** Implement the Chart
```
QChart(
chartModalTitle = "Android Compose Chart",
chartTheme = chartTheme,
chartData = chartData,
onValueClicked = {}
)
```## Creator
- [denisyordanp](https://github.com/denisyordanp) - Denis Y P**_Want your name listed here as creator? Please just create the PR!_** :zap: