Build family tree app with BALKAN FamilyTreeJS JavaScript library. Family Tree also called a genealogy or a pedigree chart, is a chart representing family relationships in a conventional tree structure.
Option 1 - standalone build
Option 2 - NPM
npm i @balkangraph/familytree.js
Option 3 - Bower
bower install familytree.js
<script src="https://balkan.app/js/familytree.js"></script>
<div id="tree"/>
<script>
var tree = new FamilyTree(document.getElementById("tree"), {
nodeBinding: {
field_0: "name"
},
nodes: [
{ id: 1, pids: [2] },
{ id: 2, pids: [1] },
{ id: 3, mid: 1, fid: 2 }
]
});
</script>