From ec18ff6ef09180b9464a2346f07e61553284bc7c Mon Sep 17 00:00:00 2001 From: x_ying <2438792676@qq.com> Date: Mon, 25 Jul 2022 17:05:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A5=BC=E5=9B=BE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/echarts/catePie.vue | 7 +++++-- src/views/components/echarts/typePie.vue | 9 ++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/views/components/echarts/catePie.vue b/src/views/components/echarts/catePie.vue index 1eb6c68..8f148b2 100644 --- a/src/views/components/echarts/catePie.vue +++ b/src/views/components/echarts/catePie.vue @@ -36,6 +36,8 @@ export default { bottom: 20, left: 'center', icon: 'rect', + itemHeight: 14, + itemWidth: 14, textStyle: { color: '#fff' } @@ -44,8 +46,9 @@ export default { { name: '档案类别', type: 'pie', - radius: ['30%', '60%'], - center: ['50%', '40%'], // 饼图位置 + radius: ['20%', '50%'], + center: ['50%', '35%'], // 饼图位置 + roseType: 'area', avoidLabelOverlap: false, // 不重叠 labelLine: { normal: { diff --git a/src/views/components/echarts/typePie.vue b/src/views/components/echarts/typePie.vue index 4144465..f6d60a5 100644 --- a/src/views/components/echarts/typePie.vue +++ b/src/views/components/echarts/typePie.vue @@ -38,6 +38,8 @@ export default { bottom: 20, left: 'center', icon: 'rect', + itemHeight: 14, + itemWidth: 14, textStyle: { color: '#fff' } @@ -47,12 +49,13 @@ export default { { name: '档案类别', type: 'pie', - radius: ['30%', '60%'], - center: ['50%', '40%'], // 饼图位置 + radius: ['20%', '60%'], + center: ['50%', '35%'], // 饼图位置 + roseType: 'area', avoidLabelOverlap: true, labelLine: { normal: { - length: 10, // 第一段表示线 + length: 2, // 第一段表示线 length2: 60 // 第二段标示线 } },