Commit fb9e4406 authored by 徐来柯's avatar 徐来柯

update

parent 2c63bba1
......@@ -321,10 +321,11 @@ function getRight1 () {
right: 0,
},
grid: {
top: 30,
left: 35,
bottom: 40,
right: 20,
top: 40,
right: 10,
bottom: 5,
left: 10,
containLabel: true
},
xAxis: {
type: 'category',
......@@ -404,8 +405,8 @@ function getRight1 () {
seriesData2.shift()
xData.shift()
}
seriesData1.push(res.data[0].Value)
seriesData2.push(res.data[1].Value)
seriesData1.push(res.data[0].Value ? res.data[0].Value : 0)
seriesData2.push(res.data[1].Value ? res.data[0].Value : 0)
// let now = new Date();
xData.push(/* now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds() */ dayjs(new Date()).format('HH:mm:ss'))
rightChart1.setOption({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment