Skip to main content
100%

D3 Tree with Multiple Parents Example

✓ Published0🌍 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
MIT Licensed

Similar vizzes