Skip to main content
Public

Share visualization

Loading preview…

Collapsible Tree Version 1

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

Collapsible Tree Version 1

0
SSubhas Ramdass
Last edited Jan 13, 2025
Created on Jan 13, 2025

A collapsible tree visualizes the hierarchical structure of the flare-2.json dataset, with nodes representing categories and leaves showing values. Clicking a node expands or collapses its children, triggering smooth animated transitions. The implementation uses D3 v6 with `d3.tree` and `d3.linkHorizontal` to compute the layout, while `d3.zoom` enables pan and zoom. Node and link updates are animated via `transition.attr`, with SVG circles and text elements rendering the hierarchy.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed