From 38dfc39df5db15b474694448d2d232daf2135fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Wed, 13 Dec 2023 17:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=95=8C=E9=9D=A2=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/LineChart1.vue | 3 +++ src/views/dashboard/PieChart.vue | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/LineChart1.vue b/src/views/dashboard/LineChart1.vue index f292087..4d5f6a3 100644 --- a/src/views/dashboard/LineChart1.vue +++ b/src/views/dashboard/LineChart1.vue @@ -109,6 +109,9 @@ export default { yAxis: { axisTick: { show: false + }, + axisLabel:{ + formatter:'{value}%' } }, legend: { diff --git a/src/views/dashboard/PieChart.vue b/src/views/dashboard/PieChart.vue index 2937b69..6e459ef 100644 --- a/src/views/dashboard/PieChart.vue +++ b/src/views/dashboard/PieChart.vue @@ -20,7 +20,7 @@ export default { }, height: { type: String, - default: '300px' + default: '350px' } }, data() { @@ -82,7 +82,7 @@ export default { type: 'pie', roseType: 'radius', radius: [15, 95], - center: ['50%', '38%'], + center: ['50%', '46%'], data: [ { value: 320, name: 'Industries' }, { value: 240, name: 'Technology' },