Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 Tree with Multiple Parents

Public visualization

Fork of D3 Tree with Multiple Parents

0 stars0🌍 Public
AAnkitha B H
Last edited Nov 15, 2023
Created on Nov 15, 2023

This example visualizes a hierarchical company ownership structure where nodes can have multiple parents, showing relationships between companies, government, labor, and the stock market. The visualization uses a D3 tree layout with data from a JSON file, and employs Underscore.js to deduplicate nodes by ID and recalculate their positions. Nodes and links render as SVG text and paths, with interactions including zoom and pan via `d3.zoom`, while the code uses `d3.hierarchy`, `tree()`, and `linkHorizontal`. The rendering includes animations when nodes transition positions using D3 transitions.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed