Fix suffix on y-axis for Millions (#259)

pull/264/head
Simon Roberts 3 years ago committed by GitHub
parent 19561ce300
commit e26816b26c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -205,7 +205,7 @@ func shortenFloatVal(x float64) string {
return fmt.Sprintf("%.4fB", x/1e9)
}
if x > 1e6 {
return fmt.Sprintf("%.4fB", x/1e6)
return fmt.Sprintf("%.4fM", x/1e6)
}
return fmt.Sprintf("%.4f", x)
}

Loading…
Cancel
Save