修改实时数据

This commit is contained in:
GGJ
2024-10-22 19:58:33 +08:00
parent 5675fb5ce3
commit f99d60d59d

View File

@@ -338,8 +338,10 @@ const init = () => {
// data: timeList
},
yAxis: {
type: 'value',
name: item.unit
// type: 'value',
name: item.unit,
splitNumber: 5,
minInterval: 1,
},
series: []
}
@@ -364,9 +366,8 @@ const init = () => {
})
})
let arrList=item.children?.map(item => item.yMethodList.map(val => val[1])).flat()
let [min, max] = yMethod(arrList.length==0?[0]:arrList)
console.log("🚀 ~ item.children.map ~ zz.yMethodList:",min, max )
let arrList = item.children?.map(item => item.yMethodList.map(val => val[1])).flat()
let [min, max] = yMethod(arrList.length == 0 ? [0] : arrList)
item.echartsData.yAxis.max = max
item.echartsData.yAxis.min = min
})