1
0
mirror of https://github.com/taigrr/skyline synced 2025-01-18 04:33:13 -08:00

Fix issue when min contributions is 0

This commit is contained in:
Martin Woodward 2021-01-18 09:06:02 +00:00
parent 1b5633ba43
commit f11fbfdb37

View File

@ -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)