This commit is contained in:
zk
2023-12-27 18:00:39 +08:00
parent 63eb01d641
commit 36f484d028
13 changed files with 231 additions and 136 deletions
+17 -4
View File
@@ -79,18 +79,31 @@ export function circleRing(chartData, total, color) {
series: [
{
type: 'pie',
radius: ['50%', '82%'],
center: ['42%', '55%'],
radius: ['50%', '75%'],
center: ['42%', '50%'],
avoidLabelOverlap: false,
// label: {
// show: true,
// // position: 'inner',
// formatter: '{d}%',
// color: '#ffffff',
// fontSize: 14,
// },
// labelLine: {
// show: false,
// },
label: {
show: true,
position: 'inner',
position: 'outside',
formatter: '{d}%',
color: '#ffffff',
fontSize: 14,
},
labelLine: {
show: false,
show: true,
length: 4,
length2: 12,
minTurnAngle: 120,
},
data: data,
},