Commit d79d1808 by lyy

echarts图表显示问题

parent 2fa1a9ae
......@@ -478,25 +478,25 @@
};
});
var overallMax = -Infinity;
var overallMin = Infinity;
_this.queryZHCLInfoList.forEach(series => {
series.data.forEach(value => {
if (value > overallMax) {
overallMax = value; // 更新整体最大值
}
if (value < overallMin) {
overallMin = value; // 更新整体最小值
}
});
});
_this.extremes = {
max: overallMax,
min: overallMin
};
console.log('extremes',_this.extremes);
// var overallMax = -Infinity;
// var overallMin = Infinity;
//
// _this.queryZHCLInfoList.forEach(series => {
// series.data.forEach(value => {
// if (value > overallMax) {
// overallMax = value; // 更新整体最大值
// }
// if (value < overallMin) {
// overallMin = value; // 更新整体最小值
// }
// });
// });
// _this.extremes = {
// max: overallMax,
// min: overallMin
// };
//
// console.log('extremes',_this.extremes);
console.log('queryZHCLInfoArray',_this.queryZHCLInfoList)
_this.queryZHCLInfoArray = res.extAttr.name;
console.log('queryZHCLInfoArray',_this.queryZHCLInfoArray)
......@@ -540,8 +540,6 @@
},
yAxis: {
type: 'value',
max:this.extremes.max+1,
min:this.extremes.min,
axisLabel: {
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