d3js树正方形 [英] d3js Tree square
本文介绍了d3js树正方形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用d3.js建立一个谱系树。
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 ?
推荐答案
a href =http://mbostock.github.com/d3/ex/cluster.html =noreferrer>群集或 tree 布局。并使用自定义路径生成器绘制连接节点的正交线,如本肘树形图中所示。我想我感觉灵感,所以我给它一个镜头:
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
这篇关于d3js树正方形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文