修改实时数据

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