Generate family tree chart
generate_family_treeUse this when the user wants a family tree, genealogy chart, pedigree chart, descendant chart, hourglass chart, fan chart or a printable family tree poster or template from relatives they describe. Convert the description into people (id, name, born, died, sex, parents, spouses) and call once. Lays out generations, couples, remarriages, half-siblings, adoption and twins without overlaps; returns a zoomable chart, PDF posters (Letter, A4, A2, 18x24, 24x36 in), SVG and a GEDCOM 5.5.1 file. Does not research ancestors, find records, or import GEDCOM files; do not invent relatives or dates. Not for organisation charts or flowcharts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Id or name of the person the chart starts from (top of a descendants chart, centre of ancestors/fan/hourglass). Example: p1. | |
| chart | No | family = everyone, generations aligned (default); descendants = from one person or couple down; ancestors = pedigree chart from one person back; hourglass = one person's ancestors above and descendants below; fan = half-circle ancestor fan chart. Example: descendants. | |
| paper | No | PDF size for the main download link: letter, a4, a2, 18x24 or 24x36 (inches). Default: the smallest size where names print at 8 pt or larger. Example: 18x24. | |
| title | No | Poster title, e.g. The Kowalski Family. Default: The <surname> Family. | |
| people | Yes | Everyone in the tree (1-200 people), each with an id, a name and links to parents/spouses by id. | |
| generations | No | How many generations to draw, counting the root: ancestors/fan 2-6 (default 4 and 5), hourglass ancestors 2-5 (default 3), descendants/family up to 12. Example: 4. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | ||
| chart | Yes | ||
| Yes | |||
| title | Yes | ||
| compact | Yes | ||
| subtitle | Yes | ||
| warnings | Yes | ||
| downloads | Yes | ||
| not_shown | Yes | ||
| duplicates | Yes | ||
| generations | Yes | ||
| box_overlaps | Yes | ||
| people_shown | Yes | ||
| people_total | Yes | ||
| download_note | Yes | ||
| recommended_paper | Yes |