Update levels to make heatmap look nicer
This commit is contained in:
parent
d9784bdbd4
commit
46315d9a62
1 changed files with 3 additions and 3 deletions
|
|
@ -30,9 +30,9 @@ export function constructWeeks() {
|
|||
|
||||
function getColor(count) {
|
||||
if (count === 0) return "var(--color-empty)";
|
||||
if (count <= 2) return "var(--color-l1)";
|
||||
if (count <= 5) return "var(--color-l2)";
|
||||
if (count <= 10) return "var(--color-l3)";
|
||||
if (count <= 3) return "var(--color-l1)";
|
||||
if (count <= 10) return "var(--color-l2)";
|
||||
if (count <= 20) return "var(--color-l3)";
|
||||
return "var(--color-l4)";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue