Fork for the Family Tree
✓ Published0🌍 Public
This visualization displays a color-coded family tree as a horizontal dendrogram, with the root "josh" branching into children and grandchildren. The tree layout uses `d3.tree` with horizontal links generated by `d3.linkHorizontal`, rendered as SVG paths that are zoomable via the `d3.zoom` event handler. Node labels are positioned using the layout's computed coordinates and styled with font sizes scaled by depth, while each node's fill color comes from the `color` property in the JSON data. The data is parsed from `data.json` using `json`, and the hierarchical structure is built with `d3.hierarchy`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed