Skip to main content
100%

Fork of D3 Tree with Multiple Parents

✓ Published0🌍 Public
Bbjm97
Last edited Apr 22, 2022
Created on Apr 21, 2022

This visualization shows a tree diagram with multiple parent nodes, where shared child nodes appear under multiple branches. The example uses a custom D3 v5 layout with `d3.tree()` and `d3.hierarchy()`, then post-processes nodes with underscore.js to deduplicate them by ID. It renders HTML tables inside `foreignObject` elements for each node, with collapsible sections triggered by clicks. Links are drawn using `d3.linkHorizontal()`, and the entire SVG supports pan and zoom via `d3.zoom()`. The data comes from a JSON file describing government and market hierarchies.

AI-generated description
MIT Licensed

Similar vizzes