Merge branch 'bigPic'
This commit is contained in:
@ -85,6 +85,7 @@ export default {
|
||||
productName.push(item.productName);
|
||||
realValue.push(item.realValue);
|
||||
}
|
||||
const limit = resData.spc.upperLimit - resData.spc.lowerLimit;
|
||||
const dataMin = Math.min.apply(Math, realValue);
|
||||
const dataMax = Math.max.apply(Math, realValue);
|
||||
this.chart.setOption({
|
||||
@ -115,16 +116,18 @@ export default {
|
||||
yAxis: {
|
||||
type: "value",
|
||||
name: "",
|
||||
min:
|
||||
(dataMin < resData.spc.lowerLimit
|
||||
? dataMin
|
||||
: resData.spc.lowerLimit) - 50,
|
||||
max:
|
||||
(dataMax > resData.spc.upperLimit
|
||||
? dataMax
|
||||
: resData.spc.upperLimit) -
|
||||
0 +
|
||||
50,
|
||||
min: resData.spc.lowerLimit - limit,
|
||||
max: resData.spc.upperLimit - 0 + limit,
|
||||
// min:
|
||||
// (dataMin < resData.spc.lowerLimit
|
||||
// ? dataMin
|
||||
// : resData.spc.lowerLimit) - 50,
|
||||
// max:
|
||||
// (dataMax > resData.spc.upperLimit
|
||||
// ? dataMax
|
||||
// : resData.spc.upperLimit) -
|
||||
// 0 +
|
||||
// 50,
|
||||
axisLabel: {
|
||||
formatter: "{value}",
|
||||
},
|
||||
|
Reference in New Issue
Block a user