mirror of
https://github.com/taigrr/skyline
synced 2025-01-18 04:33:13 -08:00
Tweak graph to 99th percentile smoothing.
This commit is contained in:
@@ -207,11 +207,11 @@ const init = () => {
|
||||
if (day.count === json.min)
|
||||
{
|
||||
height = MAX_HEIGHT * 0.1
|
||||
} else if (day.count > json.min && day.count <= json.p90)
|
||||
} else if (day.count > json.min && day.count <= json.p99)
|
||||
{
|
||||
height = ((MAX_HEIGHT * 0.1) + (((MAX_HEIGHT * 0.8) / json.p90) * day.count)).toFixed(4)
|
||||
height = ((MAX_HEIGHT * 0.1) + (((MAX_HEIGHT * 0.8) / json.p99) * day.count)).toFixed(4)
|
||||
}
|
||||
else if (day.count > json.p90)
|
||||
else if (day.count > json.p99)
|
||||
{
|
||||
height = ((MAX_HEIGHT * 0.9) + (((MAX_HEIGHT * 0.1) / json.max) * day.count)).toFixed(4)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user