大屏数据
This commit is contained in:
@@ -308,7 +308,7 @@ export default {
|
||||
show: false, // 为true滚动条出现
|
||||
type: 'slider', // type:'inside',滚动条在最下面,鼠标点击滚动
|
||||
startValue: 0, // 从头开始。
|
||||
endValue: 4 // end百分比显示范围,endValue具体显示几个数值
|
||||
endValue: 5 // end百分比显示范围,endValue具体显示几个数值
|
||||
}
|
||||
],
|
||||
xAxis: {
|
||||
@@ -324,12 +324,13 @@ export default {
|
||||
}
|
||||
},
|
||||
axisLabel: {
|
||||
interval: 0,
|
||||
textStyle: {
|
||||
color: '#fff',
|
||||
fontSize: 16
|
||||
}
|
||||
},
|
||||
data: this.array1.map((it) => it.material_code)
|
||||
data: this.array1.map((it) => it.material_name)
|
||||
},
|
||||
yAxis: {
|
||||
axisTick: {
|
||||
@@ -435,7 +436,7 @@ export default {
|
||||
autoMove (option) {
|
||||
this.timeOut = setInterval(() => {
|
||||
if (Number(option.dataZoom[0].endValue) === option.series[0].data.length - 1) {
|
||||
option.dataZoom[0].endValue = 4
|
||||
option.dataZoom[0].endValue = 5
|
||||
option.dataZoom[0].startValue = 0
|
||||
} else {
|
||||
option.dataZoom[0].endValue = option.dataZoom[0].endValue + 1
|
||||
|
||||
Reference in New Issue
Block a user