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) { export function pieOption (_charts) {
const center= ['50%', '50%'] const center= ['60%', '50%']
return { return {
title: { title: {
text: '0', text: '0',
top: 125, top: 125,
left: 196, left: 235,
textAlign: 'center', textAlign: 'center',
textStyle: { textStyle: {
width: '100%', width: '100%',
@ -87,8 +87,8 @@ export function pieOption (_charts) {
alignTo: 'edge', alignTo: 'edge',
// formatter: '{a|{c}}\n\n{name|{b}}', // formatter: '{a|{c}}\n\n{name|{b}}',
formatter: '{a|{c}}\n{r|}\n{name|{b}}', formatter: '{a|{c}}\n{r|}\n{name|{b}}',
minMargin: 5, // minMargin: 5,
edgeDistance: '10%', edgeDistance: 20,
lineHeight: 15, lineHeight: 15,
color: '#fff', color: '#fff',
fontSize: 12, fontSize: 12,
@ -114,13 +114,13 @@ export function pieOption (_charts) {
labelLine: { labelLine: {
show: false, show: false,
smooth: 0.2, smooth: 0.2,
length: 30, length: 20,
length2: 0, length2: 10,
maxSurfaceAngle: 80 maxSurfaceAngle: 80
}, },
labelLayout: function (params) { labelLayout: function (params) {
const isLeft = params.labelRect.x < _charts.getWidth() / 2; const isLeft = params.labelRect.x < _charts.getWidth() / 3;
const points = params.labelLinePoints; const points = params.labelLinePoints;
// Update the end point. // Update the end point.
if (points) { if (points) {

Loading…
Cancel
Save