|
@@ -1922,7 +1922,6 @@ export default {
|
|
|
} = this.calcLimit(leftData.flat())
|
|
|
this.leftLimitData = [Max, Min]
|
|
|
} else {
|
|
|
- this.leftIndex = -1
|
|
|
this.leftLimitData = [0, 0]
|
|
|
}
|
|
|
if (rightData.length) {
|
|
@@ -1932,7 +1931,6 @@ export default {
|
|
|
} = this.calcLimit(rightData.flat())
|
|
|
this.rightLimitData = [Max, Min]
|
|
|
} else {
|
|
|
- this.rightIndex = -1
|
|
|
this.rightLimitData = [0, 0]
|
|
|
}
|
|
|
if (rightTwoData.length) {
|
|
@@ -1942,25 +1940,8 @@ export default {
|
|
|
} = this.calcLimit(rightTwoData.flat())
|
|
|
this.rightTwoLimitData = [Max, Min]
|
|
|
} else {
|
|
|
- this.rightTwoIndex = -1
|
|
|
this.rightTwoLimitData = [0, 0]
|
|
|
}
|
|
|
- console.table([{
|
|
|
- 'y轴': '左轴',
|
|
|
- '最大值': this.leftLimitData[0],
|
|
|
- '最小值': this.leftLimitData[1]
|
|
|
- },
|
|
|
- {
|
|
|
- 'y轴': '右轴',
|
|
|
- '最大值': this.rightLimitData[0],
|
|
|
- '最小值': this.rightLimitData[1]
|
|
|
- },
|
|
|
- {
|
|
|
- 'y轴': '右二轴',
|
|
|
- '最大值': this.rightTwoLimitData[0],
|
|
|
- '最小值': this.rightTwoLimitData[1]
|
|
|
- }
|
|
|
- ])
|
|
|
},
|
|
|
calcLimit(arr) {
|
|
|
return {
|