Skip to content Skip to sidebar Skip to footer

How Do I Highlight/select Neighbours Of Neighbours In D3 Force Layout?

I have used this to help with highlighting neighour nodes: http://jsfiddle.net/simonraper/jz2AU/light/ var toggle = 0;//Toggle stores whether the highlighting is on var linkedByInd

Solution 1:

Been trying for around an hour for this and its a simple change to the code

Change both toggles to - toggle=0;

That way when selecting a node it doesn't clear the selection it just highlights the neighbours

Post a Comment for "How Do I Highlight/select Neighbours Of Neighbours In D3 Force Layout?"