From f4fb833f56435780c9a95fed4b3652ff6511bc6f Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Fri, 10 Jun 2022 17:25:47 +0800 Subject: [PATCH] dd --- src/views/modules/visual/communityParty/options.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/modules/visual/communityParty/options.js b/src/views/modules/visual/communityParty/options.js index a22fd586..a969472c 100644 --- a/src/views/modules/visual/communityParty/options.js +++ b/src/views/modules/visual/communityParty/options.js @@ -1,11 +1,11 @@ export function pieOption (_charts) { - const center= ['50%', '50%'] + const center= ['60%', '50%'] return { title: { text: '0', top: 125, - left: 196, + left: 235, textAlign: 'center', textStyle: { width: '100%', @@ -87,8 +87,8 @@ export function pieOption (_charts) { alignTo: 'edge', // formatter: '{a|{c}}\n\n{name|{b}}', formatter: '{a|{c}}\n{r|}\n{name|{b}}', - minMargin: 5, - edgeDistance: '10%', + // minMargin: 5, + edgeDistance: 20, lineHeight: 15, color: '#fff', fontSize: 12, @@ -114,13 +114,13 @@ export function pieOption (_charts) { labelLine: { show: false, smooth: 0.2, - length: 30, - length2: 0, + length: 20, + length2: 10, maxSurfaceAngle: 80 }, labelLayout: function (params) { - const isLeft = params.labelRect.x < _charts.getWidth() / 2; + const isLeft = params.labelRect.x < _charts.getWidth() / 3; const points = params.labelLinePoints; // Update the end point. if (points) {