Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

TREE STRUCTURE ( ICE)

Public visualization

TREE STRUCTURE ( ICE)

0 stars0🌍 Public
Bbhargavinalamothu@gmail.com
Last edited Apr 8, 2025
Created on Apr 8, 2025

This example displays a hierarchical tree visualization of Indian food items, organized by region and course. The data is embedded as an array of objects showing five dishes, which is converted into a tree structure using a custom `buildHierarchy` function. The visualization uses `d3.hierarchy` and `d3.tree` to compute the layout, with `d3.linkHorizontal` generating curved paths for the links. Nodes are rendered as SVG circles with text labels, positioned via the `transform` attribute, and styled with CSS classes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed