You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+57-1Lines changed: 57 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,4 +21,60 @@ New features:
21
21
- introduces union nodes to connect parents and children via common way point
22
22
- nodes are collapsible in all directions: children, parents, partners (nodes memorize their dependencies)
23
23
- use [d3-tip](https://github.com/caged/d3-tip) to show metadata on hover
24
-
- use d3-zoom to enable zooming and panning
24
+
- use d3-zoom to enable zooming and panning
25
+
26
+
## How to use
27
+
- edit `data/data.js` to represent your family tree
28
+
- open `familytree.html`
29
+
- done.
30
+
31
+
The file `data/data.js` contains a single javascript object with the following fields:
32
+
-`start`: Enter here the id of the person, which should be the starting point of the family tree.
33
+
-`persons`: Contains metadata about each person. Make sure each `id` is unique. Also, make sure each element in `own_unions` refers to a valid `union` defined in `data.unions`.
34
+
-`unions`: Contains metadata about each family. Each entry in `partner` and `children` must refer to a valid `person` defined in `data.persons`.
35
+
-`links`: Defines how unions and persons are to be linked (edge list). Basically an alternative representation of the information contained in `person.own_unions`, `union.partner` and `union.children`. Unfortunately, this redundancy is for now necessary to ensure proper functioning of the code!
0 commit comments