From 0ca297f9622764653a7262b51bdff73b553dee79 Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期四, 01 四月 2021 10:55:54 +0800
Subject: [PATCH] 弹框接收信息展示修改

---
 src/components/BaseNav/PublicBounced/GasComponents/GasECharts.vue |   57 +++++++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 41 insertions(+), 16 deletions(-)

diff --git a/src/components/BaseNav/PublicBounced/GasComponents/GasECharts.vue b/src/components/BaseNav/PublicBounced/GasComponents/GasECharts.vue
index 74f2569..dd4da05 100644
--- a/src/components/BaseNav/PublicBounced/GasComponents/GasECharts.vue
+++ b/src/components/BaseNav/PublicBounced/GasComponents/GasECharts.vue
@@ -1,7 +1,5 @@
 <template>
-    <div class="main">
-        <div id="echarts" ref="main"></div>
-      </div>
+    <div style="width:670px;height:260px;" id="echarts" ref="main"></div>
 </template>
 
 <script>
@@ -25,15 +23,41 @@
           }
         },
         legend: {
-          data: ['姘哀鍖栫墿', '浜屾哀鍖栫~', '鐑熷皹', '搴熸皵娴侀噺']
+          x: '200px',
+          y: '30px',
+          data: [{
+            name: '姘哀鍖栫墿',
+            textStyle: {
+              color: '#00d0f9'
+            }
+          },
+          {
+            name: '浜屾哀鍖栫~',
+            textStyle: {
+              color: '#00d0f9'
+            }
+          },
+          {
+            name: '鐑熷皹',
+            textStyle: {
+              color: '#00d0f9'
+            }
+          },
+          {
+            name: '搴熸皵娴侀噺',
+            textStyle: {
+              color: '#00d0f9'
+            }
+          }]
           // pageTextStyle: {
           //   color: '#fff'
           // }
         },
         grid: {
           left: '3%',
-          // right: '20%',
-          // bottom: '3%',
+          right: '1%',
+          bottom: '3%',
+          // top: '1%',
           containLabel: true
         },
         toolbox: {
@@ -91,6 +115,7 @@
         // Y 杞寸殑璁剧疆
         yAxis: [{
           type: 'value',
+          // position: 'left', // 澶� Y 杞翠娇鐢�
           // name: yname, // 鍚庢湡鍥炬爣Y杞存樉绀哄崟浣�
           name: '娴撳害(mg/m鲁)',
           axisLabel: {
@@ -149,14 +174,14 @@
 </script>
 
 <style scoped lang="less">
-    .main{
-        background: rgba(255, 255, 255, 0.1);
-    }
-    #echarts{
-        width: 600px;
-        height: 260px;
-        position: relative;
-        margin: 0;
-        padding: 0;
-    }
+  #echarts{
+    width: 670px!important;
+    height: 260px!important;
+    //position: relative;
+    margin: 0;
+    padding: 0;
+    /*background-color: rgba(0, 0, 0, 0.6);*/
+    border: 1px solid #396d83;
+    margin: 10px 10px 10px 10px;
+  }
 </style>

--
Gitblit v1.8.0