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