d3js 树方块 [英] d3js Tree square

查看:40
本文介绍了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 ?

推荐答案

您可以使用 集群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:

这篇关于d3js 树方块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆