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
PPrabaharan
Last edited Apr 7, 2023
Created on Apr 7, 2023

This example visualizes a hierarchical tree with multiple parent relationships, using a custom dataset of interconnected topics like “Government of the United States” and “Market” that share children such as “Supply and demand.” The layout positions nodes by depth and re-calculates x-coordinates for unique nodes using `_.uniq`, while links are redrawn with `d3.linkHorizontal`. Built with D3 v5, it renders as SVG text nodes and animated paths, supports zooming via `d3.zoom`, and loads data from a JSON file.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed