Browse Source

dd

shibei_master
13176889840 3 years ago
parent
commit
f4fb833f56
  1. 14
      src/views/modules/visual/communityParty/options.js

14
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) {

Loading…
Cancel
Save