Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
VIkill33 authored Jul 31, 2024
1 parent a13edc4 commit 1a5456a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ A contribution chart (aka. heatmap, GitHub-like) library for iOS, macOS, and wat
- [Usage](#usage)
- [Demo Code](#demo-code)

Updates
- 7/31/24 Support input array with any length and add a demo app inside.

# It Supports
## Custom Block Number
Of course, you can also custom the **size** of blocks and **spacing** between blocks.
Expand Down Expand Up @@ -49,7 +52,7 @@ ContributionChartView(data: yourData,
targetValue: yourTargetValue,
blockColor: .green)
```
Make sure that yourData (**a double array**) you pass has exactly `yourRows * yourColumns` numbers, and the targetValue is recommanded to set to the max value of the array.
yourData is (**a double array**), and the targetValue is recommanded to set to the max value of the array.

The color of a block will appear as exactly the color as parameter `blockColor` when its value is equal to `targetValue`, and appears light gray when is equal to zero.

Expand Down

0 comments on commit 1a5456a

Please sign in to comment.