Fork of D3 Tree with Multiple Parents
This visualization presents a multi-parent tree structure using D3 v5 and underscores.js, showing how a node like "Laborer" can inherit from multiple roots including "Government," "Stock market," and "test-market." The code builds a hierarchical layout from JSON data, then uses `_.uniq` to deduplicate shared nodes and remaps links to maintain all parent-child relationships. Rendered as SVG with horizontal link paths (`d3.linkHorizontal`), the tree includes zoom/pan interaction via `d3.zoom` and click-to-collapse behavior with animated transitions. Nodes are positioned manually based on depth, and the final root's descendant subtree is highlighted in steel blue.