mirror of
https://github.com/taigrr/skyline
synced 2026-04-01 09:18:44 -07:00
Fix issue when min contributions is 0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user