mirror of
https://github.com/miguelmota/cointop
synced 2024-11-05 00:00:14 +00:00
Fix suffix on y-axis for Millions (#259)
This commit is contained in:
parent
19561ce300
commit
e26816b26c
@ -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…
Reference in New Issue
Block a user