From 17de93255772734b15cce7a0c680a40d2ec5878c Mon Sep 17 00:00:00 2001 From: zhangshuaibao <15731629597@163.com> Date: 星期五, 09 四月 2021 09:43:43 +0800 Subject: [PATCH] echarts日数据折线图实现 --- src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue b/src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue index 8370098..9ecea2e 100644 --- a/src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue +++ b/src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue @@ -117,7 +117,7 @@ </el-col> </el-row> </div> - <div style="width:100%;height:200px;" id="echarts" ref="main"> + <div style="width:600px;height:200px;" id="echarts" ref="main"> </div> </div> </div> @@ -329,7 +329,7 @@ mounted () { this.$nextTick(() => { this.drawChart() - const dataWatch = JSON.parse(JSON.stringify(this.$attrs.getQueryOnlineMonData)) + const dataWatch = JSON.parse(JSON.stringify(this.$attrs.getQueryOnlineMonData)).reverse() console.log(dataWatch) var dataValue1 = [] var dataValue2 = [] -- Gitblit v1.8.0