diff --git a/README.md b/README.md index 0193e46..4af3ac5 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,11 @@


+## YouTube video + + ## Including in your project [![](https://jitpack.io/v/BoyzDroizy/SimpleAndroidBarChart.svg)](https://jitpack.io/#BoyzDroizy/SimpleAndroidBarChart) API @@ -33,6 +38,28 @@ And add a dependency code to your **module**'s `build.gradle` file. } ``` +## Usage + +### Basic Example (Kotlin) +Firstly, you need to add this custom text view to the layout of the class
+ +``` xml + +``` +In your class, using the 'id' from layout, call 'setChartData' method to give values for populate the chart.
+ +```kotlin + val chartData = (12 downTo 1).map { Random.nextInt(10, 100) }.toMutableList() + val intervalData = (12 downTo 1).map { it }.toMutableList() + + simpleBarChart.setChartData(chartData, intervalData) + simpleBarChart.setMaxValue(max) + simpleBarChart.setMinValue(0) +``` + ## Find this library useful? :heart: Be free to use it and enjoy. :star: