improve yaxis label

This commit is contained in:
liangping 2022-08-25 11:14:01 +08:00
parent 2c40847f24
commit f286fb1230

View File

@ -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()