ErikGartner / dTree

A library for visualizing data trees with multiple parents, such as family trees. Built on top of D3.

Home Page:https://treehouse.gartner.io/ErikGartner/58e58be650453b6d49d7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Different distances between nodes of different nuclear families

andretorresdg opened this issue · comments

I searched a lot in the source code to try to understand before asking, but it still wasn't clear...

tree-example

When my family starts to get very large and complex, it becomes difficult to quickly understand the nuclear family. In the image above, for example, the distances between brothers from the same marriage are the same of the third brother from the first marriage and the first brother from the second marriage, the same problem occurs with the distance between brothers-in-law, if you notice in this example, the brother on the left side of the image (in gray) is married two women and the distance between the second woman and his brother is very small (the same distance between him and the other brother). The problematic distances in this example are scribbled in purple. Is there any way to accentuate the distances? Creating the nuclear family closer and the other nuclear families more distant?

A reference image about this asymmetry in the horizontal distances that I want to reach:
img-for-ref-tree

I have no problem creating this feature if necessary, I just need an advice where I could modify it to do this.

Hi @andretorresdg,

The layout is decided by d3 tree layout function.
I don't have any cycles for this project but if you make a PR I would be happy to merge it.

Erik