https://github.com/dzeiocom/charts
Highly customizable and easy to use Charts library for android
https://github.com/dzeiocom/charts
android android-library charting-library charts grahps kotlin library ui
Last synced: about 1 year ago
JSON representation
Highly customizable and easy to use Charts library for android
- Host: GitHub
- URL: https://github.com/dzeiocom/charts
- Owner: dzeiocom
- License: mit
- Created: 2022-08-22T21:18:18.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-30T08:36:01.000Z (over 2 years ago)
- Last Synced: 2025-03-28T13:37:29.974Z (over 1 year ago)
- Topics: android, android-library, charting-library, charts, grahps, kotlin, library, ui
- Language: Kotlin
- Homepage:
- Size: 1.31 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Dzeio Charts
Highly customizable and easy to use Chart library for android
## Install
- Add Jitpack.io to your `settings.gradle` file `maven { url 'https://jitpack.io' }`
Add to you dependencies (check the latest release for the version):
- (Gradle Kotlin DSL) Add `implementation("com.dzeio:charts:1.0.0")`
- (Gradle Groovy DSL) Add `implementation "com.dzeio:charts:1.0.0" `
## Usage
_note: full featured examples in the `sample` app_
Add this to your views
```xml
```
```kotlin
val chart = binding.chart // get the chart from the view
// setup the Serie
val serie = LineSerie(chart)
// give the serie its entries
serie.entries = // fill this with com.dzeio.charts.Entry
serie.entries = arrayListOf(
Entry(
1,
53f
)
)
// refresh the Chart
chart.refresh()
```
| Basic charts | Fully customized chart | Grouped/Stacked charts |
|:-----------------------------------------:|:-------------------------------------------:|:-------------------------------------------:|
|  |  |  |
Example Usage
in a health oriented step counter with a daily goal
_note: Every charts used above used a helper function to have Material 3 colors [See the MaterialUtils.kt class](sample/src/main/java/com/dzeio/chartsapp/utils/MaterialUtils.kt)_
## Build
- Install Android Studio
- Build the app
- it will be running on your emulator/device
- test it!
## Contributing
See [CONTRIBUTING.md](https://github.com/dzeiocom/charts/blob/master/CONTRIBUTING.md)
TL::DR
- Fork
- Commit your changes
- Pull Request on this Repository
## License
This project is licensed under the MIT License. A copy of the license is available at [LICENSE.md](https://github.com/dzeiocom/charts/blob/master/LICENSE.md)