feat:修改chart最大间隔的倍数跟数组长度有关

This commit is contained in:
zhangyu
2020-10-13 13:41:54 +08:00
parent e581908312
commit a32cc3897b

View File

@@ -731,7 +731,7 @@
show:false show:false
}, },
minInterval: chartDataFormat.Interval(maxValue,copies,unit.type,'min'), minInterval: chartDataFormat.Interval(maxValue,copies,unit.type,'min'),
// maxInterval: chartDataFormat.Interval(maxValue,copies,unit.type,'max'), maxInterval: chartDataFormat.Interval(maxValue,copies,unit.type,'max')*Math.ceil(dataArg.length/5),
axisTick: { axisTick: {
show: false, show: false,
}, },
@@ -1477,7 +1477,7 @@
series:this.seriesItem, series:this.seriesItem,
yAxis:{ yAxis:{
minInterval: chartDataFormat.Interval(maxValue,copies,unit.type,'min'), minInterval: chartDataFormat.Interval(maxValue,copies,unit.type,'min'),
maxInterval: chartDataFormat.Interval(maxValue,copies,unit.type,'max'), maxInterval: chartDataFormat.Interval(maxValue,copies,unit.type,'max')*Math.ceil(dataArg.length/5),
} }
}); });
if(this.hasLegendOptions){ if(this.hasLegendOptions){
@@ -1510,7 +1510,7 @@
series:this.seriesItemScreen, series:this.seriesItemScreen,
yAxis:{ yAxis:{
minInterval: chartDataFormat.Interval(maxValue,copies,unit.type,'min'), minInterval: chartDataFormat.Interval(maxValue,copies,unit.type,'min'),
maxInterval: chartDataFormat.Interval(maxValue,copies,unit.type,'max'), maxInterval: chartDataFormat.Interval(maxValue,copies,unit.type,'max')*Math.ceil(dataArg.length/5),
} }
}); });
if(this.hasLegendOptions){ if(this.hasLegendOptions){