d3js Tree square

被刻印的时光 ゝ 提交于 2019-12-28 07:39:29

问题


I would like to use d3.js to build a pedigree tree.

All exemples that I found are showcasing organic trees.

Are there any exemples out there with a pedigree like style ?


回答1:


You could accomplish this using either the cluster or tree layouts. And using a custom path generator to draw orthogonal lines connecting nodes, as in this elbow dendrogram. I guess I was feeling inspired so I gave it a shot:

  • http://bl.ocks.org/2966094



回答2:


I recently created some examples of using D3 to draw pedigrees in the style that most software does. There are examples for showing how to make it expand and collapse, transitions, and showing descendants as well as ancestors.



来源:https://stackoverflow.com/questions/11137238/d3js-tree-square

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!