javascript d3js 树方块
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11137238/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
d3js Tree square
提问by gpasse
I would like to use d3.js to build a pedigree tree.
我想使用 d3.js 来构建谱系树。
All exemples that I found are showcasing organic trees.
我发现的所有例子都展示了有机树。
Are there any exemples out there with a pedigree like style ?
是否有任何具有血统风格的例子?
回答by mbostock
回答by gpasse
I recently created some examples of using D3 to draw pedigreesin 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.
我最近创建了一些使用 D3 以大多数软件所做的风格绘制系谱的示例。有一些示例展示了如何使其展开和折叠、转换以及显示后代和祖先。