Reputation: 135
There is always thin sector for 0 (0%) value. How can I hide zero value sector on a pie chart. http://jsfiddle.net/t0hgLx2n/
data: [
['Firefox', 100.0],
['Others', 0]
]
Remove this white line
(source: piccy.info)
Upvotes: 1
Views: 4716
Reputation: 109
It's been a while but if anyone stumbles upon this you have to update Highcharts to at least version 5.
Replace:
<script src="http://code.highcharts.com/4.0/highcharts.js"></script>
With:
<script src="http://code.highcharts.com/6.0/highcharts.js"></script>
Upvotes: -1
Reputation: 61
This question could be resolved by two parts:
filter zero data
data: [
['Firefox', 100.0],
['Others', 0]
].filter(function(d) {return d[1] > 0})
remove border in one-slice pie
(please refer to Border in one-slice pie #1828)
http://jsfiddle.net/Joe_Wu/sub2houn/
Upvotes: 6