forked from LaconicNetwork/cosmos-explorer
improve yaxis label
This commit is contained in:
1 parent
2c40847f24
commit
f286fb1230
1 file changed
+1
-1
@@ -323,7 +323,7 @@ export default {
|
||||
return `${(val / 1000).toFixed()}k`
|
||||
}
|
||||
if (val > 1) {
|
||||
return val.toFixed(1)
|
||||
return parseFloat(val.toFixed(2)).toString()
|
||||
}
|
||||
if (val > 0.001) {
|
||||
return parseFloat(val.toFixed(4)).toString()
|
||||
|
||||
Reference in new issue
Block a user