From d29d77e91951e30abba6596359b138bc4c6ac108 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期三, 25 三月 2026 14:37:27 +0800
Subject: [PATCH] 修改折线图

---
 src/views/dataAnalysis/components/DataReLineChart.vue |   71 +++++++++++++++++++++--------------
 1 files changed, 43 insertions(+), 28 deletions(-)

diff --git a/src/views/dataAnalysis/components/DataReLineChart.vue b/src/views/dataAnalysis/components/DataReLineChart.vue
index de65a92..4c8cdf3 100644
--- a/src/views/dataAnalysis/components/DataReLineChart.vue
+++ b/src/views/dataAnalysis/components/DataReLineChart.vue
@@ -326,6 +326,29 @@
               show: false,
             },
           },
+          {
+            type: 'value',
+            nameTextStyle: {
+              color: 'rgba(185, 185, 185, 1)',
+            },
+            position: 'right',
+            axisLine: {
+              show: false,
+            },
+            splitLine: {
+              show: false,
+            },
+            axisTick: {
+              show: false,
+            },
+            axisLabel: {
+              show: true,
+              formatter: this.showpercent ? '{value} %' : '{value}',
+              textStyle: {
+                color: 'rgba(185, 185, 185, 1)',
+              },
+            },
+          },
         ],
 
         series: [],
@@ -357,21 +380,17 @@
       if (this.chartData.lineData) {
         option.series.push({
           name: this.chartData.lineName,
-          type: 'bar',
-          barWidth: '12px',
+          type: 'line',
+          yAxisIndex: 1,
+          smooth: true,
+          symbol: 'circle',
+          symbolSize: 6,
+          lineStyle: {
+            width: 2,
+            color: '#16B777',
+          },
           itemStyle: {
-            normal: {
-              color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
-                {
-                  offset: 0,
-                  color: '#16B777',
-                },
-                {
-                  offset: 1,
-                  color: '#0D6E4A',
-                },
-              ]),
-            },
+            color: '#16B777',
           },
           data: this.chartData.lineData,
         })
@@ -403,21 +422,17 @@
       if (this.chartData.lineData2) {
         option.series.push({
           name: this.chartData.lineName2,
-          type: 'bar',
-          barWidth: '12px',
+          type: 'line',
+          yAxisIndex: 1,
+          smooth: true,
+          symbol: 'circle',
+          symbolSize: 6,
+          lineStyle: {
+            width: 2,
+            color: '#FFD93D',
+          },
           itemStyle: {
-            normal: {
-              color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
-                {
-                  offset: 0,
-                  color: '#FFD93D',
-                },
-                {
-                  offset: 1,
-                  color: '#B8860B',
-                },
-              ]),
-            },
+            color: '#FFD93D',
           },
           data: this.chartData.lineData2,
         })

--
Gitblit v1.8.0