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 // 第二段标示线 } },