Самый простой способ добиться этого - установить цвет границы так же, как фон.Проверьте демонстрацию, размещенную ниже.
Вы можете сделать это с помощью рендерера, но это решение намного сложнее.
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'pie',
styledMode: false,
events: {
load: function() {
console.log(this);
}
}
},
plotOptions: {
pie: {
borderWidth: 2,
borderColor: '#fff',
colors: [
'#1cbbbe',
'#1cbbbe',
],
animation: false,
innerSize: '70%',
dataLabels: {
enabled: true,
format: '<b>{point.percentage:.1f}</b><br />{point.name}',
distance: 40,
filter: {
property: 'percentage',
operator: '>',
value: 3
},
style: {
color: '#000',
fontWeight: 'bold',
fontSize: '14px'
},
shadow: false,
connectorShape: 'crookedLine',
connectorColor: 'rgba(27, 186, 190, 0.5)'
}
}
},
title: {
floating: true,
color: 'black',
text: '<span class="title-first">Balance</span><br/>356<br/>Total Paid',
x: 0,
y: 180,
style: {
color: 'black',
fontWeight: 'bold',
}
},
tooltip: {
enabled: true,
useHTML: false,
style: {
zIndex: 25
}
},
series: [{
data: [
['Unconfirmed Balance', 9.2668],
['Unpaid Balance', 78.8788],
]
}]
}, function(chart) { // on complete
var gradient = {
linearGradient: [0, 0, 0, 400],
stops: [
[0, '#1b4b5a'],
[1, '#3a8293']
]
};
});
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<div id="container" style="min-width: 310px; height: 400px; max-width: 600px; margin: 0 auto"></div>
Демо: