From da0051726dcd20acc585175ba564f410d78b2bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B6=E6=99=B6=20=E5=BC=A0?= Date: Wed, 11 Aug 2021 16:14:03 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=AE=9E=E4=BD=93=E8=AF=A6?= =?UTF-8?q?=E6=83=85=20singleValue-2=20=E5=9B=BE=E8=A1=A8=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/charts/ChartSingleValue.vue | 2 +- src/components/charts/chart-options.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/charts/ChartSingleValue.vue b/src/components/charts/ChartSingleValue.vue index d7d93d67..2cc6ca09 100644 --- a/src/components/charts/ChartSingleValue.vue +++ b/src/components/charts/ChartSingleValue.vue @@ -18,7 +18,7 @@
-
+
diff --git a/src/components/charts/chart-options.js b/src/components/charts/chart-options.js index dd988736..00d681ec 100644 --- a/src/components/charts/chart-options.js +++ b/src/components/charts/chart-options.js @@ -230,7 +230,7 @@ const pieWithTable = { } ] } -const routinestraightline = { +const singleValueLine = { tooltip: { show: false }, @@ -246,7 +246,7 @@ const routinestraightline = { grid: { left: 0, bottom: 0, - top: 0, + top: 5, right: 0 }, color: chartColor, @@ -292,7 +292,7 @@ const typeOptionMappings = [ { value: 12, option: lineWithStatistics }, // 带统计表格的折线图 { value: 13, option: lineStack }, // 折线堆叠图 { value: 31, option: pieWithTable }, // 常规折线图 - { value: 52, option: routinestraightline } + { value: 52, option: singleValueLine } ] const typeCategory = { MAP: 'map',