fix:修复Y轴小数 显示过多的问题

This commit is contained in:
zhangyu
2020-09-23 09:41:46 +08:00
parent ef6164808d
commit 9512a9ea3d

View File

@@ -19,10 +19,18 @@ function short(value,index,type=1,dot){
}
function percent01(value,index){
return `${value} %`;
let len=JSON.stringify(value);
if(len.length>5){
len=len.slice(0,5);
}
return `${len} %`;
}
function percent02(value,index){
return `${value * 100 } %`;
let len=JSON.stringify(value);
if(len.length>5){
len=len.slice(0,5);
}
return `${len * 100 } %`;
}
function localFormat(value,index){
let num = (value || 0).toString();