diff --git a/README.md b/README.md index 5b6b371..f37cf55 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,59 @@ # AndroidChartJS ![image](https://raw.githubusercontent.com/SeptiawanAjiP/AndroidChartJS/master/demo-image.jpeg) -Simplify chart visualization in your Android applications by seamlessly integrating the robust capabilities of [Chart.js](https://www.chartjs.org/). Create interactive and visually compelling charts effortlessly, enhancing your data presentation on the Android platform. \ No newline at end of file +Simplify chart visualization in your Android applications by seamlessly integrating the robust capabilities of [Chart.js](https://www.chartjs.org/). Create interactive and visually compelling charts effortlessly, enhancing your data presentation on the Android platform. + +## Installation + +Use Gradle. Add it in your settings.gradle at the end of repositories: + +```bash +dependencyResolutionManagement { + repositories { + .... + maven { url 'https://jitpack.io' } + } +} +``` +then, add the dependecy in your build.gradle file (Module) +```bash +dependencies { + implementation 'com.github.SeptiawanAjiP:AndroidChartJS:Tag' +} +``` +replace Tag with the latest version. + +## Usage +### XML Layout +```bash + + + + + +``` +### Activity +```bash +binding.androidChart1.setChart( + ChartType.PIE, + arrayOf("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday"), + arrayOf(10, 3, 5, 8, 9), + "of quantity") +``` +### Chart Types +- [x] Bar Chart +- [x] Line Chart +- [x] Pie Chart +- [x] Doughnut Chart +- [x] Polar Area +- [] Bar Chart \ No newline at end of file