rstacruz / kingraph

Plots family trees using JavaScript and Graphviz
439 stars 86 forks source link

Sibling(children) order are jumbled because of subfamilies #9

Open gppam opened 5 years ago

gppam commented 5 years ago

Hi, loving your project! But I've encountered this specific problem. For example below, Bill is the eldest but he is put below the youngest sibling Ginny, because he has family. Is there a fix for this?

weasleyfam

families:
  - parents: [Arthur, Molly]
    children: [Ginny, Ron, George, Fred, George, Percy, Charlie, Bill]
    families:
      - parents: [Bill, Fleur]
        children: [Victoire, Dominique, Louis]
      - parents: [George, Angelina]
      - parents: [Ron, Hermione]
        children: [Rose, Hugo]

An inelegant solution I did was to make the single sibling a parent but that's not what it's supposed to do.