@@ -168,7 +168,8 @@
labelLine: {
show: true
},
- data: [] as UTSJSONObject[]
+ data: [] as UTSJSONObject[],
+ textOffset: 150
} as UTSJSONObject
] as UTSJSONObject[]
} as UTSJSONObject)
@@ -219,17 +220,17 @@
extra: {
pie: {
activeOpacity: 0.5,
- activeRadius: 10,
+ activeRadius: 0,
offsetAngle: 0,
labelWidth: 15,
ringWidth: 30,
- customRadius: 0,
+ // 添加 customRadius 来控制饼图大小
+ customRadius: 80,
border: false,
borderWidth: 0,
borderColor: '#FFFFFF',
centerColor: '#FFFFFF',
- linearType: 'custom',
- radius: 70
+ linearType: 'custom'
}
@@ -326,7 +327,8 @@
show: false
- data: chartItems
+ data: chartItems,
]