Highcharts-sankey图中节点之间的换行符

时间:2018-10-01 09:02:46

标签: highcharts sankey-diagram

当尝试以相反方向连接节点以获得循环时,我遇到了问题。
如何配置连接“ Alpha”,“ Beta”,“ Gamma”和“ Page Views”的线路不中断? enter image description here

这是我的代码:    jsfiddle.net/Hideon/n6Lqutch/4 /

我想做这样的事情:

enter image description here

1 个答案:

答案 0 :(得分:2)

Highcharts sankey系列尚不完全支持向后连接点。

在Highcharts github上报告了此问题:https://github.com/highcharts/highcharts/issues/8218

目前,解决方法是将marginBottomclip设置为false:

chart: {
    marginLeft: 50,
    marginRight: 50,
    marginBottom: 100
},

series: [{
    clip: false,
    ...
}]

实时演示:http://jsfiddle.net/BlackLabel/t3jLszqy/

API:

https://api.highcharts.com/highcharts/chart.marginBottom

https://api.highcharts.com/highcharts/series.sankey.clip