组件调整
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export function screenPie(chartData, total, color) {
|
||||
export function screenPie(chartData, total, color, formatter) {
|
||||
return {
|
||||
title: {
|
||||
text: '总人数',
|
||||
@@ -31,7 +31,7 @@ export function screenPie(chartData, total, color) {
|
||||
top: 'center',
|
||||
orient: 'vertical',
|
||||
icon: 'circle',
|
||||
itemGap: 26,
|
||||
itemGap: 16,
|
||||
textStyle: {
|
||||
color: '#ffffff',
|
||||
fontSize: 16,
|
||||
@@ -46,7 +46,7 @@ export function screenPie(chartData, total, color) {
|
||||
label: {
|
||||
show: true,
|
||||
position: 'inner',
|
||||
formatter: '{d}%',
|
||||
formatter: formatter,
|
||||
color: '#ffffff',
|
||||
fontSize: 14,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user