Skip to main content
Public

Share visualization

Loading preview…

Fork of Tree

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 Tree

0
SSaiSreya1
Last edited Jul 10, 2022
Created on Jul 9, 2022
Forked from Tree

This visualization displays a hierarchical tree structure from a JSON data file, representing cartoon characters and their relationships. The tree branches from a central root node, with child nodes extending outward horizontally. Each node is labeled with its character's name and colored according to the `color` property in the data, while gray connecting lines link parent and child nodes. The implementation uses D3 v5's `json()`, `hierarchy()`, `tree()`, and `linkHorizontal()` APIs to parse the data, compute the layout, and draw the SVG paths and text elements. The visualization also includes zoom functionality through the `zoom()` API, allowing interactive exploration of the tree.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed