Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3.js

Public visualization

Viewing a saved revision (read-only)

1d7c4da9afd148cbb08718c36cf6381b

D3.js

0 stars0🌍 Public
Aayd0122344
Last edited Jun 1, 2020
Created on Jun 1, 2020

A family tree (genealogy) diagram renders hierarchical data from a JSON file (genealogy5.json) as an SVG. The visualization displays individuals as nodes connected by curved paths, with text labels indicating names and branch designations. The code uses D3.js v5's tree layout (`d3.layout.tree`) and diagonal path generator (`d3.svg.diagonal`) to position and draw the connections. Data transformation with `d3.nest()` restructures the flat JSON into a nested hierarchy before rendering nodes and links.

AI-generated description