BALKANGraph / FamilyTreeJS

Build family tree app with BALKAN FamilyTreeJS library. Family Tree also called a genealogy or a pedigree chart, is a chart representing family relationships in a conventional tree structure.
50 stars 16 forks source link

Create multiple (at least more than three) parents and one child FamilyTreeJs #42

Closed aleresoftware closed 6 months ago

aleresoftware commented 1 year ago

Hi there, Based on my use cases of my project, I need to build a diagram where parents are more than three and their child must be only one. Is there any way of build such relationship?

Thank you

Example like this three parents one child

ZornitsaPesheva commented 1 year ago

You can use orientation.bottom: https://balkan.app/OrgChartJS/Docs/Layout#bottom

aleresoftware commented 1 year ago

Hi there, Thank you for your reply. But I realised that my diagram was not completely explainable to describe my use cases. Here below I have attached the image, very similar to my use case, where I need to build relationship with respect to Q4 (Q4 must have three parent ids and two children ids). Is there any way of building such relationship.

Thank you.

Example like this

three parents one child full diagram

ZornitsaPesheva commented 1 year ago

In our First look demo if you expand the root node up, you will see that you can have two parents and three children: https://balkan.app/OrgChartJS/Demos/FirstLook image

aleresoftware commented 1 year ago

what about creating three parents and two children for that node? is it possible?

ZornitsaPesheva commented 1 year ago

Yes, it is possible. Here is the doc: https://balkan.app/OrgChartJS/Docs/SubTrees#simulate

aleresoftware commented 1 year ago

Thank you