jfs
Posts: 14
Joined: Mon Jan 03, 2022 8:14 pm

Highchart organisation data order

Hi everybody,

i have an issue with organisation charts : in some cases the charts shows wrong links between nodes. It seem to depend on the order in which the data (from... to) are declared. I can provide an example if necessary.

Are there any requirements or recommandations about the order of data declaration ?

Regards
jfs
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Highchart organisation data order

Hello jfs,

Welcome to our forum and thanks for contacting us with your question!

Generally, you need to hold to the set scheme. If your key is [from, to] nodes will be ordered from the left to the right (or top to the bottom, when inverted).
In case you suspect it might be a bug, please provide a simplified demo in the online editor. You can start here: https://jsfiddle.net/BlackLabel/qjz5e2bm/

Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
jfs
Posts: 14
Joined: Mon Jan 03, 2022 8:14 pm

Re: Highchart organisation data order

Thanks you Magdalena for your support. I also found out using "column" helps to sort the chart and get the needed layout.
I don't see any anomalies anymore.

jfs
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Highchart organisation data order

Hi,

You're right, using nodes.column is also a good idea, thank's for sharing this!

Regards!
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Usage”