是否可以添加没有连接的项目?
试图将“ to”或“ weight”设置为空或为null,但这会停止呈现图表
https://www.highcharts.com/samples/codepen/highcharts/demo/dependency-wheel
答案 0 :(得分:0)
不支持,但是您可以在创建图表后隐藏一些连接:
chart: {
events: {
load: function() {
var points = this.series[0].points;
points.forEach(function(point) {
if (
point.from === 'Brazil' ||
point.to === 'Brazil'
) {
point.graphic.hide();
}
});
}
}
}
实时演示: http://jsfiddle.net/BlackLabel/tq2x4m1n/
API参考: https://api.highcharts.com/class-reference/Highcharts.SVGElement#hide