d3 Collapsible tree vertical

I have just finished playing around with M. Bostoc's collapsible tree. Here is a link to his original version.

This tree has a right to left orientation, and I wanted a top to bottom. He does provide an option for tree orientations here

Sources showing how to vertically orient it online, showcase a very simple non interactive tree. 

SO i just changed his original code a bit, just small x, y tweaks (mainly the diagonal and the node transitions). Quiet simple actually. And this is what it looks like. 

Also including the code and the hierarchical JSON object used. 

Hope this helps. :)

Comments

  1. where is the code? and where is the demo? I would love to use this.

    ReplyDelete

Post a Comment

Popular posts from this blog

Accessing Coursera learning material offline

Adding and deleting Angular directives dynamically (Part 1)