How do I show marriages in a d3.js based 'family-tree'?

前端 未结 3 1907
情歌与酒
情歌与酒 2020-12-12 18:36

I\'m a HTML/CSS developer, researching javascript solutions for building a \'family-tree\' which needs to show marriages (from outside the family, of course

3条回答
  •  伪装坚强ぢ
    2020-12-12 18:38

    I also needed to draw pedigrees with D3 so I figured out how. I have created examples that show the basic functionality and then add on advanced features such as expanding and showing descendants.

    I don't know how you want to display marriages. Marriages are inherent in an ancestral pedigree but not in a descendancy chart. The code could be adapted to show spouses in the descendant nodes.

    Here's a pic of how it looks. The style can be tweaked as desired.

    enter image description here

提交回复
热议问题