I\'m building a tree structure (or rather modifying one of the examples with a set of my own data in my own json) and I\'m trying to create some functionality:
Unfortunately I'm still getting up to speed with D3, and am not sure how to best answer your question. But Here's a force-directed layout which allows you to show/hide nodes by clicking on them, which might give you some ideas: http://bl.ocks.org/1062288