Genealogy "Kinship" tree

924 views
Skip to first unread message

oddityoverseer13

unread,
Nov 6, 2013, 5:17:38 PM11/6/13
to d3...@googlegroups.com
Hi all,

I'm new to this mailing list, and to D3, so I apologize in advance if I say anything nooby.

What I'm looking to do is create something like this: https://groups.google.com/forum/#!newtopic/d3-js It's known as a kinship chart. Just to be clear, what I want is something where I have a root node, who will potentially have two parent nodes, multiple spouses, and multiple children with those spouses.

I've seen a few examples that come sorta close, but not really. The closest I've found is http://bl.ocks.org/jdarling/2503502. The problem with this is the root's parent's don't have children.

I'm pretty sure the d3 tree layout is not suited for this, because it requires the data to be in a format where each node has parents, who have parents, etc. Each of my nodes have parents, children and "spouses".

So, instead of a tree layout, maybe I want a force layout? The problem there is that I still want my data to be hierarchical. Ie: I don't want randomly distributed nodes; I want a clear distinction between each generation.

So, I guess I want a "force dendrogram"? I don't have a clue how I'd do that though.

Anyhow. Any ideas are welcome. I'm kinda stumped on how to do this. I've done a lot of searching, and I haven't found any solutions to this problem. The only application I've found that does something like this in an halfway decent form is Ancestry.com, and they're source is closed, so there's no help there.

Thanks,
oddityoverseer13

oddityoverseer13

unread,
Nov 6, 2013, 5:24:09 PM11/6/13
to d3...@googlegroups.com
lol. just realized I put in the wrong link for the kinship chart. Here's the right one: http://www.doors-to-the-past.com.au/images/decen.gif

oddityoverseer13

unread,
Nov 6, 2013, 6:17:35 PM11/6/13
to d3...@googlegroups.com


On Wednesday, November 6, 2013 3:17:38 PM UTC-7, oddityoverseer13 wrote:

nick

unread,
Nov 7, 2013, 11:10:16 AM11/7/13
to d3...@googlegroups.com
Perhaps this discussion helps?
https://groups.google.com/forum/#!topic/d3-js/59sK1dPSTE4

With the most "hierarchical" example here:
http://bl.ocks.org/mbostock/1804919

This requires getting kind of intimate with the force-directed algorithm, as you will basically have to force the `y` coordinate of whatever you are laying out to be set by the "generation" step function, then handle the collisions in the `x` coordinate... however, the various flavors of edges should do a pretty good job of clustering your "marriages" and "parentages".

nick

unread,
Nov 13, 2013, 9:12:36 AM11/13/13
to d3...@googlegroups.com
@oddityoverseer13:
Here is another, active discussion that might be helpful:
https://groups.google.com/forum/#!topic/d3-js/9uYpA2bD6qw
Reply all
Reply to author
Forward
0 new messages