d3-collapsible-tree-demo

Example of displaying data in a collapsible tree using D3.js

View the Project on GitHub kyhau/d3-collapsible-tree-demo

d3 collapsible tree demo

Example of displaying data in a collapsible tree using D3.js

Demo

https://kyhau.github.io/d3-collapsible-tree-demo/collapsible_tree.html.

Run locally

  1. Copy collapsible_tree.html and input_graph_tree.json to the same folder.

  2. Run
    Python 3: python -m http.server 8080
    Python 2: python -m SimpleHTTPServer 8080

  3. URL: localhost:8080/collapsible_tree.html