Commit d79d1808 by lyy

echarts图表显示问题

parent 2fa1a9ae
...@@ -478,25 +478,25 @@ ...@@ -478,25 +478,25 @@
}; };
}); });
var overallMax = -Infinity; // var overallMax = -Infinity;
var overallMin = Infinity; // var overallMin = Infinity;
//
_this.queryZHCLInfoList.forEach(series => { // _this.queryZHCLInfoList.forEach(series => {
series.data.forEach(value => { // series.data.forEach(value => {
if (value > overallMax) { // if (value > overallMax) {
overallMax = value; // 更新整体最大值 // overallMax = value; // 更新整体最大值
} // }
if (value < overallMin) { // if (value < overallMin) {
overallMin = value; // 更新整体最小值 // overallMin = value; // 更新整体最小值
} // }
}); // });
}); // });
_this.extremes = { // _this.extremes = {
max: overallMax, // max: overallMax,
min: overallMin // min: overallMin
}; // };
//
console.log('extremes',_this.extremes); // console.log('extremes',_this.extremes);
console.log('queryZHCLInfoArray',_this.queryZHCLInfoList) console.log('queryZHCLInfoArray',_this.queryZHCLInfoList)
_this.queryZHCLInfoArray = res.extAttr.name; _this.queryZHCLInfoArray = res.extAttr.name;
console.log('queryZHCLInfoArray',_this.queryZHCLInfoArray) console.log('queryZHCLInfoArray',_this.queryZHCLInfoArray)
...@@ -540,8 +540,6 @@ ...@@ -540,8 +540,6 @@
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
max:this.extremes.max+1,
min:this.extremes.min,
axisLabel: { axisLabel: {
show:false show:false
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment