|
@@ -663,8 +663,8 @@ export default {
|
|
|
tickInterval = (Math.max(...maxData)-Math.min(...minData))/6;
|
|
|
}
|
|
|
|
|
|
- //y轴又要刻度数量固定...
|
|
|
- let isNeedYTickInterval = ([3,4,5,10,11,12].includes(modelId)&&![3,4].includes(Source))?true:false;
|
|
|
+ //y轴也要刻度数量固定...
|
|
|
+ let tickAmount = [3,4,5,10,11,12].includes(modelId)?6:undefined;
|
|
|
|
|
|
//title样式
|
|
|
let titleHTML = null
|
|
@@ -727,7 +727,7 @@ export default {
|
|
|
},
|
|
|
yAxis: options.yAxis.map(_ => ({
|
|
|
..._,
|
|
|
- tickInterval: isNeedYTickInterval ? this.handleTickInterval(_) : undefined
|
|
|
+ tickAmount
|
|
|
}))
|
|
|
}
|
|
|
//奇怪柱不堆叠
|