From f11fbfdb37461a3cd9e5b91a5462f817d47e51ec Mon Sep 17 00:00:00 2001 From: Martin Woodward Date: Mon, 18 Jan 2021 09:06:02 +0000 Subject: [PATCH] Fix issue when min contributions is 0 --- js/contributions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/contributions.js b/js/contributions.js index 021d689..59870f1 100644 --- a/js/contributions.js +++ b/js/contributions.js @@ -204,7 +204,7 @@ const init = () => { // Adjust height around distribution of values // Needed so that a large day doesn't blow out the scale let height = (0).toFixed(4) - if (day.count === json.min) + if (day.count === json.min && json.min > 0) { height = MAX_HEIGHT * 0.1 } else if (day.count > json.min && day.count <= json.p99)