|
@@ -2389,7 +2389,7 @@ function checkLimit(tableData=[],ChartInfo){
|
|
|
if(Number(axisLimitState.leftMin)===0&&Number(axisLimitState.leftMax)===0){
|
|
|
const leftData = tableData.filter(i=>i.IsAxis===1).map(i=>[Number(i.MinData),Number(i.MaxData)])
|
|
|
if(leftData.length){
|
|
|
- const {Max,Min} = this.calcLimit(leftData.flat())
|
|
|
+ const {Max,Min} = calcLimit(leftData.flat())
|
|
|
axisLimitState.leftMin = Min
|
|
|
axisLimitState.leftMax = Max
|
|
|
}
|
|
@@ -2397,7 +2397,7 @@ function checkLimit(tableData=[],ChartInfo){
|
|
|
if(Number(axisLimitState.rightMin)===0&&Number(axisLimitState.rightMax)===0){
|
|
|
const rightData = tableData.filter(i => !i.IsAxis).map(i=>[Number(i.MinData),Number(i.MaxData)])
|
|
|
if(rightData.length){
|
|
|
- const {Max,Min} = this.calcLimit(rightData.flat())
|
|
|
+ const {Max,Min} = calcLimit(rightData.flat())
|
|
|
axisLimitState.rightMin = Min
|
|
|
axisLimitState.rightMax = Max
|
|
|
}
|
|
@@ -2405,7 +2405,7 @@ function checkLimit(tableData=[],ChartInfo){
|
|
|
if(Number(axisLimitState.rightTwoMin)===0&&Number(axisLimitState.rightTwoMax)===0){
|
|
|
const rightTwoData = tableData.filter(i=>i.IsAxis===2).map(i=>[Number(i.MinData),Number(i.MaxData)])
|
|
|
if(rightTwoData.length){
|
|
|
- const {Max,Min} = this.calcLimit(rightTwoData.flat())
|
|
|
+ const {Max,Min} = calcLimit(rightTwoData.flat())
|
|
|
axisLimitState.rightTwoMin = Min
|
|
|
axisLimitState.rightTwoMax = Max
|
|
|
}
|