Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the vertically-oriented tree using d3.js

The following url is going to get horizontally-oriented tree. My requirement is however to get a vertically-oriented tree using d3. Please suggest a proper valid solution for this requirement.

d3js Tree square enter image description here

like image 282
Saihariharan Avatar asked Oct 18 '13 07:10

Saihariharan


1 Answers

I know its been a while since you asked the question, but just in case I would like to bring to your attention a diagram that I made:

enter image description here

The code in on codepen. If you have any questions regarding the code, please let me know.

like image 180
VividD Avatar answered Sep 25 '22 02:09

VividD