From 5aa886bd768bb9da351e298219f0529b5ac00922 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 13:55:16 +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/PieChart.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/dashboard/PieChart.vue b/src/views/dashboard/PieChart.vue index c360057..b56ec90 100644 --- a/src/views/dashboard/PieChart.vue +++ b/src/views/dashboard/PieChart.vue @@ -45,6 +45,16 @@ export default { this.chart = echarts.init(this.$el, 'macarons') this.chart.setOption({ + title: { + text: '标题1 ', + textStyle: { + align: 'center', + color: '#000', + fontSize: 20, + }, + top: '0%', + left: '0%', + }, tooltip: { trigger: 'item', formatter: '{a}
{b} : {c} ({d}%)'