fix:处理Y轴最大值 最小值的精度问题
This commit is contained in:
@@ -700,8 +700,7 @@ export default {
|
||||
case 10: return 5;
|
||||
}
|
||||
},
|
||||
Interval:function(value,copies,type){
|
||||
console.log(value,'Interval');
|
||||
Interval:function(value,copies,type,interValType){
|
||||
if(value<1024&&type==='Data'){
|
||||
let interVal=value/copies;
|
||||
return interVal
|
||||
@@ -721,7 +720,6 @@ export default {
|
||||
interVal=Math.ceil(interVal)*Math.pow(1024,pow);
|
||||
}
|
||||
interVal = interVal || 1;
|
||||
console.log(interVal);
|
||||
return interVal
|
||||
}
|
||||
if(type==='DataRate' || type==='Misc'){
|
||||
@@ -738,6 +736,9 @@ export default {
|
||||
console.log(interVal);
|
||||
return interVal
|
||||
}
|
||||
if(interValType==='max'){
|
||||
return value
|
||||
}
|
||||
return 1;
|
||||
// let interVal=value/copies;
|
||||
// interVal = interVal || 1;
|
||||
|
||||
Reference in New Issue
Block a user