组件调整

This commit is contained in:
zhaotiantian
2023-12-11 18:28:52 +08:00
parent d4f668548c
commit e449d5687b
7 changed files with 349 additions and 328 deletions
+3 -3
View File
@@ -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,
},