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

Fix the view of the tree #66

Closed daxxac closed 1 year ago

daxxac commented 1 year ago

Is there any way to fix the broken view?

image
ZornitsaPesheva commented 1 year ago

Please isolate the issue in a simple example: https://code.balkan.app/familytreejs/getting-started#JS

daxxac commented 1 year ago

Thank you, https://code.balkan.app/broken-tree-view#JS

so according to the the data now: 1) on opening the tree for the node 621FA1433EA7B299411C265BA6FA1CCD it looks like on the picture above 2) I have initial node, but i see another couple of nodes shown on start (grandfather and his second wife), any way to hide them?

ZornitsaPesheva commented 1 year ago

You have some gaps in the data. For example, if you have 621FA20909D1660B1167AD6FEBB3608D in pids here:

  {
    "id": "621FA21F635B3CA1E729B51BA338B2D1",
    "mid": null,
    "fid": null,
    "pids": [
      "621FA20909D1660B1167AD6FEBB3608D"
    ]
  },

You should have 621FA21F635B3CA1E729B51BA338B2D1 in pids here:

  {
    "id": "621FA20909D1660B1167AD6FEBB3608D",
    "mid": "621FA21F38051C9DE729B51BA338B2D1",
    "fid": "621FA21F0E628C99E729B51BA338B2D1",
    "pids": []
  },
daxxac commented 1 year ago

thanks, i'll check again

daxxac commented 1 year ago

Thank you! It helped a lot! 👍