block by d3noob 80c100e35817395e88918627eeeac717

Interactive tree v4 external json

Full Screen

This is a d3.js tree diagram that incldes an interactive element and loads the json data from an external file.

Any parent node can be clicked on to collapse the portion of the tree below it, on itself. Conversly, it can be clicked on again to regrow.

It is derived from the Mike Bostock Collapsible tree example and updated to use v4.

index.html

treeData.json