|
|
@ -44,35 +44,35 @@ export function pieOption() { |
|
|
|
show: false |
|
|
|
}, |
|
|
|
data: [], |
|
|
|
/* label: { |
|
|
|
label: { |
|
|
|
show: false, |
|
|
|
position: 'center', |
|
|
|
formatter: data => { |
|
|
|
console.log(data.color) |
|
|
|
return `{c_style|${data.percent.toFixed(0)}%}\n{b_style|${data.name}}` |
|
|
|
// '{c_style|{d}%}\n{b_style|{b}}'
|
|
|
|
}, |
|
|
|
rich: { |
|
|
|
b_style: { |
|
|
|
fontSize: 12, |
|
|
|
fontWeight: 400, |
|
|
|
color: '#A3B9DA' |
|
|
|
}, |
|
|
|
c_style: { |
|
|
|
padding: [0, 0, 5, 0], |
|
|
|
fontSize: 24, |
|
|
|
fontWeight: 'bold', |
|
|
|
color: '#fff' |
|
|
|
} |
|
|
|
} |
|
|
|
// formatter: data => {
|
|
|
|
// console.log(data.color)
|
|
|
|
// return `{c_style|${data.percent.toFixed(0)}%}\n{b_style|${data.name}}`
|
|
|
|
// // '{c_style|{d}%}\n{b_style|{b}}'
|
|
|
|
// },
|
|
|
|
// rich: {
|
|
|
|
// b_style: {
|
|
|
|
// fontSize: 12,
|
|
|
|
// fontWeight: 400,
|
|
|
|
// color: '#A3B9DA'
|
|
|
|
// },
|
|
|
|
// c_style: {
|
|
|
|
// padding: [0, 0, 5, 0],
|
|
|
|
// fontSize: 24,
|
|
|
|
// fontWeight: 'bold',
|
|
|
|
// color: '#fff'
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
}, |
|
|
|
emphasis: { |
|
|
|
label: { |
|
|
|
show: true, |
|
|
|
show: false, |
|
|
|
fontSize: '14', |
|
|
|
fontWeight: 'normal' |
|
|
|
} |
|
|
|
},*/ |
|
|
|
}, |
|
|
|
/* label: { |
|
|
|
show: false, |
|
|
|
position: 'center' |
|
|
|