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

update

parent 2c63bba1
...@@ -321,10 +321,11 @@ function getRight1 () { ...@@ -321,10 +321,11 @@ function getRight1 () {
right: 0, right: 0,
}, },
grid: { grid: {
top: 30, top: 40,
left: 35, right: 10,
bottom: 40, bottom: 5,
right: 20, left: 10,
containLabel: true
}, },
xAxis: { xAxis: {
type: 'category', type: 'category',
...@@ -404,8 +405,8 @@ function getRight1 () { ...@@ -404,8 +405,8 @@ function getRight1 () {
seriesData2.shift() seriesData2.shift()
xData.shift() xData.shift()
} }
seriesData1.push(res.data[0].Value) seriesData1.push(res.data[0].Value ? res.data[0].Value : 0)
seriesData2.push(res.data[1].Value) seriesData2.push(res.data[1].Value ? res.data[0].Value : 0)
// let now = new Date(); // let now = new Date();
xData.push(/* now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds() */ dayjs(new Date()).format('HH:mm:ss')) xData.push(/* now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds() */ dayjs(new Date()).format('HH:mm:ss'))
rightChart1.setOption({ 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