Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
asayushg committed Oct 5, 2021
1 parent e82ff9b commit 17430a3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ Step 2. Add the dependency

<h2 id="examples">Examples :eyes:</h2>

Pie Chart
<img src="pie-chart-example.gif" width="250"/>

Pie Chart with Border
<img src="pie-chart-border-example.gif" width="250"/>

<h2 id="documentation">Documentation :notebook_with_decorative_cover:</h2>
<h4> 1. Pie Chart </h4>

Expand All @@ -35,7 +39,7 @@ Add the PieChart View in your layout as:
.../>
```

Create a list of Slice with percentage and color and submit to PieChart view with border width and color as:
Create a list of Slice with percentage and color and submit to PieChart view as:
```
val list = ArrayList<PieChart.Slice>()
list.add(
Expand All @@ -44,7 +48,11 @@ list.add(
color = Color.RED
)
)
findViewById<PieChart>(R.id.pieChart).submitList(pieChartList = list, borderSize = 10f, borderColor = Color.GRAY)
val pieChart = findViewById<PieChart>(R.id.pieChart)
pieChart.submitList(pieChartList = list, borderSize = 10f, borderColor = Color.GRAY)
// set borderSize and borderColor
pieChart.setBorder(10f, Color.BLACK)
```

### Charts Available
Expand Down
2 changes: 1 addition & 1 deletion chart/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ afterEvaluate {
from components.release
groupId = 'com.github.jitpack'
artifactId = 'charts'
version = '1.0.1'
version = '1.0.2'
}
}
}
Expand Down
Binary file added pie-chart-border-example.gif.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pie-chart-example.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 17430a3

Please sign in to comment.