Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Tree with Multiple Parents Example

Public visualization

D3 Tree with Multiple Parents Example

0 stars2🌍 Public
MMilan Košir
Last edited Dec 17, 2023
Created on Dec 17, 2023

This example visualizes a hierarchical tree with multiple parents, where nodes like “Developer” and “Laborer” appear under several root categories such as “Stock market” and “Grape-market.” The data comes from a local JSON file, and the layout uses d3.tree combined with Underscore.js utilities to deduplicate nodes and reassign links by ID. SVG rendering includes horizontal links via d3.linkHorizontal, with zoom interaction and animated transitions for node positioning. A selected root category highlights its children with steelblue strokes and full opacity.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed