Fork of D3 Tree with Multiple Parents
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.