echarts icon indicating copy to clipboard operation
echarts copied to clipboard

饼图pie:如果只有两个,其中一个的值为0的时候会出现一条白线

Open LitterRoach opened this issue 11 years ago • 1 comments

参考这个option,会发现为0的部分会出现一条白线,我想问下有去掉的办法么? option = { calculable : true, series : [ { name:'访问来源', type:'pie', radius : '55%', center: ['50%', '60%'], itemStyle: { normal: { label: { show: true, position: 'inside', textStyle:{ fontFamily:"微软雅黑,Arial, Verdana, sans-serif", color:"#414141" }, formatter: function(seriesName) { if (seriesName.value == 0) { return ''; } else { return seriesName.value; }

                            }
                        },
                        labelLine : {
                            show : false
                        }
                    },
                    emphasis: {
                        label: {
                            show: true,
                            //formatter: function(seriesName) { return seriesName.name + '(' + seriesName.percent + '%)'; }
                        }
                    }
                },
        data:[
            {value:1, name:'直接访问'},
            {value:0, name:'邮件营销'}
        ]
    }
]

};

LitterRoach avatar Aug 17 '15 04:08 LitterRoach

算了,直接关掉吧,都没人管

LitterRoach avatar Oct 27 '15 11:10 LitterRoach