update
This commit is contained in:
@@ -2,20 +2,36 @@ export function screenPie(chartData, total, color, formatter) {
|
||||
return {
|
||||
title: {
|
||||
text: '总人数',
|
||||
subtext: total + '',
|
||||
x: '38%',
|
||||
y: '42%',
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
color: '#ffffff',
|
||||
fontWeight: 'normal',
|
||||
align: 'center',
|
||||
},
|
||||
subtext: total + '',
|
||||
x: '38%',
|
||||
y: '42%',
|
||||
subtextStyle: {
|
||||
color: '#ffffff',
|
||||
fontSize: 24,
|
||||
fontWeight: 'bold',
|
||||
},
|
||||
},
|
||||
// graphic: [
|
||||
// {
|
||||
// //环形图中间添加文字
|
||||
// type: 'text', //通过不同top值可以设置上下显示
|
||||
// left: 'center',
|
||||
// top: 'center',
|
||||
// style: {
|
||||
// text: 45465456,
|
||||
// textAlign: 'center',
|
||||
// fill: '#1E7CE8', //文字的颜色
|
||||
// fontSize: 20,
|
||||
// lineHeight: 20,
|
||||
// },
|
||||
// },
|
||||
// ],
|
||||
color: color,
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
|
||||
Reference in New Issue
Block a user