Skip to content

Commit

Permalink
Merge pull request #56 from Tencent/fixed/issues50
Browse files Browse the repository at this point in the history
fix: 修复图表文字重叠, fixes #50
  • Loading branch information
xucz authored Apr 4, 2022
2 parents 9a119e0 + a6c2613 commit 854875a
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/pages/Dashboard/Base/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const getPieChartOptions = (radius = 42): EChartOption => ({
type: 'pie',
radius: ['48%', '60%'],
avoidLabelOverlap: false,
silent: true,
itemStyle: {
borderWidth: 1,
},
Expand All @@ -113,24 +114,6 @@ export const getPieChartOptions = (radius = 42): EChartOption => ({
},
},
},
emphasis: {
label: {
show: true,
formatter: ['{value|{d}%}', '{name|{b}渠道占比}'].join('\n'),
rich: {
value: {
fontSize: 28,
fontWeight: 'normal',
lineHeight: 46,
},
name: {
color: '#909399',
fontSize: 12,
lineHeight: 14,
},
},
},
},
labelLine: {
show: false,
},
Expand Down

0 comments on commit 854875a

Please sign in to comment.