'Highcharts organizational chart - change link color

I have spent plenty of time trying to figure out how to change link's color when a user clicks on the node.I can set color when the chart is loading like this:

keys: ['from', 'to', 'linkColor'],
data: [
  ['1', '2', 'Red'],

But I need to change it dynamically when users click on nodes. I can catch the click and everything but just can't find a property or something to change it.

Any idea how to do that?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source