Pie Datalabel distance
by Black Label
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container" style="min-width: 500px; height: 700px; margin: 0 auto"></div>
JavaScript
$(function() {
var pieSize = 300;
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'container'
},
plotOptions: {
pie: {
size: pieSize,
dataLabels: {
distance: -50,
color: 'black',
formatter: function() {
return this.point.name + ' (' + this.percentage + '%)';
}
}
}
},
series: [{
type: 'pie',
data: [
['Firefox', 45.0],
['IE', 26.8],
['Chrome', 12.8],
['Safari', 8.5],
['Opera', 6.2],
['Others', 0.7]
]
}]
});
});
});