netjsongraph.js icon indicating copy to clipboard operation
netjsongraph.js copied to clipboard

Expand or collapse a node on click

Open khsahaji opened this issue 6 years ago • 2 comments

Hi

I have been using the tool to draw network-graph. Lately a need to collapse or expand a node by clicking on it has come up as a convenient feature as the graph gets bigger. However I was not able to figure out how to just do that. Does anyone has any idea ? A quick internet search tells me that its possible by directly using d3.js. I was wondering if anyone has done that using "netjsongraph.js" however. Thanks in advance for any pointers. screenshot from 2019-02-05 19-06-12

khsahaji avatar Feb 05 '19 13:02 khsahaji

@khsahaji Similar to this mentioned by @gubi in #13 . For now version, it's hard to achieve because of less params in click function. We'll consider adding this feature in the future.

KuTuGu avatar May 09 '19 15:05 KuTuGu

@KuTuGu That will be of great help. Waiting for this feature. Thanks in advance.

khsahaji avatar May 10 '19 08:05 khsahaji