question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for marriages for spouses

See original GitHub issue
var treeData =[  
   {  
      "name":"Abc Xyz",
      "class":"man",
      "id":"121",
      "marriages":[  
         {  
            "spouse":{  
               "name":"Jane",
               "class":"woman",
               "id":"122",
               "marriages":[  
                  {  
                     "spouse":{  
                        "name":"Jill",
                        "class":"man",
                        "id":"2304"
                     },
                     "children":[  
                        {  
                           "name":"Abc Xyz",
                           "class":"man",
                           "id":"142"
                        }
                     ]
                  }
               ]
            },
            "children":[  
               {  
                  "name":"Abc Xyz",
                  "class":"man",
                  "id":"131"
               },
               {  
                  "name":"Abc Xyz",
                  "class":"man",
                  "id":"132",
                  "marriages":[  
                     {  
                        "spouse":{  
                           "name":"Abc Xyz",
                           "class":"woman",
                           "id":"141"
                        },
                        "children":[  
                           {  
                              "name":"Abc Xyz",
                              "class":"man",
                              "id":"142"
                           }
                        ]
                     }
                  ]
               },
               {  
                  "name":"Abc Xyz",
                  "class":"man",
                  "id":"133"
               }
            ]
         }
      ]
   }
];

When used above json object dTree is not showing marriages of Jane

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
zaheer1389commented, Apr 27, 2017

also how to add parent of spouses?

1reaction
ErikGartnercommented, May 17, 2017

@shelleyvadams I think that would be solved best by referring to nodes in the tree. That is the first time the node is defined you manually assign it an identifier and then you can reference that node in other places.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Marriage and Partnerships - CHADD
Marriage and Partnerships. Conflict and discord are common in marriages and partnerships involving an individual with undiagnosed ADHD.
Read more >
9 Ways ADHD May Strain Relationships - ADDitude
1. Hyperfocus Dating. The biggest shock to ADHD relationships comes with the transition from courtship to marriage. Typically, a person with ...
Read more >
What to Know If Your Spouse or Partner Has ADHD
If your spouse has ADHD, it might be affecting your marriage. Here are some tips for coping and what you can do to...
Read more >
ADHD and Marriage | Learn to thrive in your relationship
ADHD adults and partners can manage ADHD in their love life! Paying attention, affairs, job loss, nagging, being on time, criticism, chores, organization, ......
Read more >
How ADHD Can Affect Your Marriage - WebMD
If you are married to someone with ADHD, your relationship may have a lot of challenges. In fact, research has found that relationships...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found