解决饼图数据为零时均分的问题

main
wuyize 2022-07-14 20:51:16 +08:00
parent 4e547e43b6
commit 96bc233a65
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,7 @@ export default {
methods: { methods: {
// //
getOption() { getOption() {
// //
let option = { let option = {
tooltip: { tooltip: {
@ -63,6 +64,7 @@ export default {
{ {
name: '统计', name: '统计',
type: 'pie', type: 'pie',
stillShowZeroSum: false,
center: ['45%', '55%'], center: ['45%', '55%'],
// radius: ['40%', '70%'], // radius: ['40%', '70%'],
avoidLabelOverlap: false, avoidLabelOverlap: false,