Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of Fork of Tree 7

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Fork of Fork of Tree 7

0
BBoyka
Last edited Jun 16, 2023
Created on Jun 16, 2023

This collapsible tree diagram visualizes a small hierarchical dataset loaded from a JSON file, with nodes labeled by names such as “kamasani” and “lalli.” Users can click any node to expand or collapse its children, triggering smooth animated transitions of both the node positions and the connecting diagonal links. The implementation uses D3 v3’s `d3.layout.tree`, `d3.svg.diagonal`, and SVG transitions with a duration of 1100 milliseconds. Nodes are rendered as green-stroked circles with bold text, and the tree layout spreads vertically by depth, with each level offset by 180 pixels.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed