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