From 55ff4ad6155248a7c2f391fd4fe75682a311dac0 Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期四, 24 七月 2025 16:54:26 +0800
Subject: [PATCH] refactor(svg): 优化 SVG相关组件功能

---
 zhitan-vue/src/components/Echarts/LineChart.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/zhitan-vue/src/components/Echarts/LineChart.vue b/zhitan-vue/src/components/Echarts/LineChart.vue
index 8703363..8a1f434 100644
--- a/zhitan-vue/src/components/Echarts/LineChart.vue
+++ b/zhitan-vue/src/components/Echarts/LineChart.vue
@@ -59,7 +59,7 @@
     name: item.name,
     type: props.chartType, // 鏍规嵁浼犲叆绫诲瀷娓叉煋
     data: item.data,
-    barWidth: "16",
+    barWidth: props.chartData.barWidth || "16",
     itemStyle: {
       borderRadius: [15, 15, 0, 0],
     },
@@ -68,13 +68,14 @@
   console.log("initChart", series)
   let option = {
     title: {
-      // text: props.chartData.title,
+      text: props.chartData.title || "",
       left: "40",
       textStyle: {
         color: "#2979ff",
       },
     },
-    color: ["#2979ff", "#19be6b", "#ff9900", "#fa3534"],
+    color: ["#4dadf8", "#19be6b", "#ff9900", "#3d8a32", "#e8463a", "#ff4e3f"],
+    // color: ["#2979ff", "#19be6b", "#ff9900", "#fa3534"],
     tooltip: {
       trigger: "axis",
       axisPointer: {

--
Gitblit v1.9.3