1

Is there any way to draw a half node in Sankey using Highcharts?. I have searched a lot but didn't get any solution. From d3 it can be done but the same thing I want to achieve with Highcharts. For reference, I have attached the image. If you observe the nodes Terminated before Institution, Terminated after institution, Pending Final Decision, Pending Institution Decision, and Other all these are half nodes. So, is there any way I can do the same with Highcharts?

[1]: https://i.stack.imgur.com/BeQGC.pngstrong text

Aniket Tiwari
  • 3,561
  • 4
  • 21
  • 61
john s
  • 21
  • 3

1 Answers1

0

Currently, the only easy way to do that seems to be to use a combination of column and offset node options:

    series: [{
        keys: ['from', 'to', 'weight'],
        data: [
            ['China', 'EU', 94],
            ['China', 'US', 53]
        ],
        nodes: [{
            id: 'US',
            column: 1,
            offset: 110,
        }, {
            id: 'EU',
            offset: -70,
            column: 2
        }],
        ...
    }]

Live demo: https://jsfiddle.net/BlackLabel/x593vrtj/

API Reference:

https://api.highcharts.com/highcharts/series.sankey.nodes.column

https://api.highcharts.com/highcharts/series.sankey.nodes.offset

ppotaczek
  • 36,341
  • 2
  • 14
  • 24