robzilla20001
Posts: 2
Joined: Mon Dec 21, 2020 6:43 am

Org Chart - Change node layout to hanging on click.

New to HighCharts sorry.

I'm trying to toggle between node.layout = hanging/normal when i click a node. I'm sure this is simple to do, but cant quite get it across the line.

I am definitely setting the node.layout variable onclick correctly, but unsure as to how to get highcharts to redraw the org chart with the updated setting. I have created a jsfiddle here: https://jsfiddle.net/robzilla20001/pm8bosj6/38/

Apologies is this is a basic question, new to highcharts and ive spent a few hours on it so far and seem to be going in circles.

Rob
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Org Chart - Change node layout to hanging on click.

Hello robzilla20001!

We appreciate you reaching out to us!

As far as I know, you can't update just a single node. You can update the whole series which means that you need to provide all the settings one more time.

API references:
https://api.highcharts.com/class-refere ... ies#update

Demo:
https://jsfiddle.net/BlackLabel/r869maep/

Let me know if that was what you were looking for!
Best regards!
Dominik Chudy
Highcharts Developer

Return to “Highcharts Usage”