0
votes

I downloaded D3.js "collapsible tree" code and json file from https://gist.github.com/mbostock/4339083.
I opened the html file in my pc, but I am not able to visualize the tree in my browser.
Am I need to install any other packages along with this? I need collapsible tree for my data visualization, I prepared JSON file with my data as same way that has given.

1

1 Answers

0
votes

If you want to load data from file (like your json), you have to run an HTTP server:

python2 -m SimpleHTTPServer 8080

Run the command above in the same directory of your json and d3.js files.

Edit This is a simple way to run an HTTP server, without install Apache.