解决饼图数据为零时均分的问题
parent
4e547e43b6
commit
96bc233a65
|
@ -54,6 +54,7 @@ export default {
|
|||
methods: {
|
||||
// 获取配置
|
||||
getOption() {
|
||||
|
||||
// 指定图表的配置项和数据
|
||||
let option = {
|
||||
tooltip: {
|
||||
|
@ -63,6 +64,7 @@ export default {
|
|||
{
|
||||
name: '统计',
|
||||
type: 'pie',
|
||||
stillShowZeroSum: false,
|
||||
center: ['45%', '55%'],
|
||||
// radius: ['40%', '70%'],
|
||||
avoidLabelOverlap: false,
|
||||
|
|
Loading…
Reference in New Issue