fix:修复Y轴小数 显示过多的问题
This commit is contained in:
@@ -19,10 +19,18 @@ function short(value,index,type=1,dot){
|
|||||||
|
|
||||||
}
|
}
|
||||||
function percent01(value,index){
|
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){
|
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){
|
function localFormat(value,index){
|
||||||
let num = (value || 0).toString();
|
let num = (value || 0).toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user