Skip to main content
100%

Fork for the Family Tree

✓ Published0🌍 Public
Rrohinikotha
Last edited Apr 3, 2022
Created on Apr 3, 2022

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes