Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3.js

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed