Network graph nodes connected line click event
For Network graph , when two nodes connected by one line, I want to click the line and trigger click event, and get the information of those two nodes
-
Nas commented
I have the same question!
seems like lines between two nodes don't have a click event. I tried Pawel's solution but it doesn't work. It doesn't log when it's not a node. It doesn't hover too. -
AdminPaweł Fus (Admin, Highcharts JS) commented
Thanks for sharing the idea! Here you can find simple plugin that adds events from `point.events` to links too: http://jsfiddle.net/BlackLabel/b8369zvh/
Note: You can distinguish nodes and links by simple checking `this.isNode` flag.
*Internal note:*
Links are actually points, but hover/tooltip is disabled so default events aren't fired (such link can no be assigned to `chart.hoverPoint` internally).