答案 0 :(得分:1)
通过使用attr
方法,可以为连接器设置stroke-dasharray
属性:
chart: {
...,
events: {
load: function() {
var points = this.series[0].points;
points.forEach(function(p) {
p.connector.attr({
'stroke-dasharray': "4, 4"
});
});
}
}
}
实时演示: https://jsfiddle.net/BlackLabel/boxhv0yt/
文档: https://www.highcharts.com/docs/advanced-chart-features/pie-datalabels-alignment