Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] dotted line for divorced marriage #128

Open
sihendri opened this issue Dec 7, 2021 · 3 comments
Open

[REQUEST] dotted line for divorced marriage #128

sihendri opened this issue Dec 7, 2021 · 3 comments

Comments

@sihendri
Copy link

sihendri commented Dec 7, 2021

Hi...

I love your works. It help a lot creating my family tree. I don't want to call this as an issue. I just want to request to add a feature: dotted line for a divorced marriage.

I need to keep that information and display it on the tree, in case there is an ex couples have children, just to find out who is their biological parents... so the line to the children still from their biological parents.

and is it possible to have more than one spouse? because my great great grandparents have 3 wives..

sorry if hard for you to understand my words. English is not my primary language

@nelind3
Copy link

nelind3 commented Dec 22, 2021

Multiple spouses is easy just add another marriage object to the marriages array with the spouse and children like so:

"marriages": [
        {
            "spouse": {
                "name": "spouse0"
            }
        },
        {
            "spouse": {
                "name": "spouse1"
            },
            "children": {
               "name":  "child0"
        }
    ]

@m-miller
Copy link

The above overwrites spouse0 with spouse1 in the graph, does not add another node. I'm also looking to add a second marriage to an individual. Any ideas on where to start?

@eroffa
Copy link

eroffa commented Feb 11, 2023

The above overwrites spouse0 with spouse1 in the graph, does not add another node. I'm also looking to add a second marriage to an individual. Any ideas on where to start?

treeData = [{
  "name": "Men",
  "marriages": [{
    "spouse": {
      "name": "Women 1",
    },
  },
  {
    "spouse": {
      "name": "Women 2",
    },
  }],
}];

dTree.init(treeData, $options);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants