始终存在 0 (0%) 值的薄扇区。 如何在饼图上隐藏零值扇区。 http://jsfiddle.net/t0hgLx2n/
data: [
['Firefox', 100.0],
['Others', 0]
]
去掉这条白线
(来源:piccy.info)
最佳答案
这个问题可以分两部分来解决:
过滤零数据
data: [ ['Firefox', 100.0], ['Others', 0] ].filter(function(d) {return d[1] > 0})
删除单扇饼中的边框
关于javascript - Highcharts饼图隐藏零扇区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28301604/