Skip to main content
Public

Share visualization

Loading preview…

Fork of ICE - 8: Visualizing 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 ICE - 8: Visualizing Tree

0
IIndhuKrishnaraj
Last edited Mar 30, 2023
Created on Mar 30, 2023

This interactive tree diagram visualizes hierarchical product and brand data, with Walmart as the root and categories like Vegetables, Fruits, and car manufacturers branching into specific items. The visualization uses the D3.js library's `d3.layout.tree()` function to compute node positions and `d3.svg.diagonal()` for curved links, rendering SVG elements with animated transitions on click. Nodes are styled as white circles with steel blue outlines, connected by orange paths, and text labels identify each entity. The data is embedded as a JavaScript array with nested `children` properties, and the layout maps tree coordinates to Cartesian space for display.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed