From 1a5456abe2118f8605bed703bc387fc00eed65e9 Mon Sep 17 00:00:00 2001 From: VIkill33 <78488529+VIkill33@users.noreply.github.com> Date: Wed, 31 Jul 2024 17:00:32 +0800 Subject: [PATCH] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 19345c3..eea8b4d 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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.