From fb1bdc2a4046408f931fce85b331f333c6de973e Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123456 <zxx19900626>
Date: 星期三, 13 四月 2022 18:31:52 +0800
Subject: [PATCH] echarts

---
 src/pages/show/jiuyeAndChuangye/jiuyeChildren/zhiyePeixun.vue |   54 +++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 39 insertions(+), 15 deletions(-)

diff --git a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/zhiyePeixun.vue b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/zhiyePeixun.vue
index f66d23e..839aaaf 100644
--- a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/zhiyePeixun.vue
+++ b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/zhiyePeixun.vue
@@ -134,20 +134,34 @@
                             crossStyle: {
                                 color: '#999'
                             }
+                        },
+                        textStyle: {
+                            color: '#fff',
+                            fontSize: nowSize(28)
                         }
                     },
                     title: {
                       text:'鍘嗗勾鑱屼笟鍩硅鎯呭喌鍒嗘瀽鍥�',
                       left: 'center',
-                      top:'3%',
+                      top:'5%',
                       textStyle: {
                           color: '#fff',
                           fontSize: nowSize(30)
                       }
                     },
+                    grid: {
+                        top: '15%',
+                        left: '4%',
+                        right: '18%',
+                        bottom: '3%',
+                        containLabel: true
+                    },
                     legend: {
+                        data: ['瀹為檯鍩硅浜烘暟','瀹屾垚鐜�'],
                         right:'3%',
-                        top:'3%',
+                        top:'center',
+                        orient:'vertical',
+                        itemGap: nowSize(50),
                         textStyle: {
                             color:'#fff',
                             fontSize: nowSize(24)
@@ -178,36 +192,46 @@
                     yAxis: [
                         {
                             type: 'value',
-                            name: 'Precipitation',
-                            min: 0,
-                            max: 250,
-                            interval: 50,
                             axisLabel: {
-                                formatter: '{value} ml',
                                 textStyle: {
                                     color: '#fff',
                                     fontSize: nowSize(24)
                                 }
                             },
                             axisLine: {
-
+                              lineStyle: {
+                                  color: "#999999",
+                                  width: 1,
+                                  type: "solid"
+                              }
+                            },
+                            splitLine: {
+                               show: false
                             }
                         },
                         {
                             type: 'value',
-                            name: 'Temperature',
-                            min: 0,
-                            max: 25,
-                            interval: 5,
                             axisLabel: {
-                                formatter: '{value} 掳C'
+                                show: false,
+                                formatter: '{value} %'
+                            },
+                            axisLine: {
+                                show: false,
+                            },
+                            splitLine: {
+                                show: false
+                            },
+                            axisTick: {
+                                show: false
                             }
                         }
                     ],
                     series: [
                         {
-                            name: 'Evaporation',
+                            name: '瀹為檯鍩硅浜烘暟',
                             type: 'bar',
+                            barWidth: nowSize(48),
+                            color:'#51D2FF',
                             tooltip: {
                                 valueFormatter: function (value) {
                                     return value + ' ml';
@@ -218,7 +242,7 @@
                             ]
                         },
                         {
-                            name: 'Temperature',
+                            name: '瀹屾垚鐜�',
                             type: 'line',
                             yAxisIndex: 1,
                             tooltip: {

--
Gitblit v1.9.1