Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment_8_sowjanya_tree

Public visualization

Assignment_8_sowjanya_tree

0 stars1🌍 Public
Ssaisowjanyaedupuganti.24f@gmail.com
Last edited Nov 9, 2025
Created on Nov 9, 2025

This hierarchical tree visualization displays a food-category dataset from a CSV file, organized by root, category, sub-category, and item layers. It uses `d3.stratify()` to build the hierarchy from flat "id,parent" data, then `d3.tree()` to compute the tidy layout. Nodes use distinct shapes and pastel colors per depth, with `d3.symbol()` generating circles, squares, diamonds, and triangles. The code renders links as horizontal paths, provides an interactive tooltip, and includes a legend. The visualization is rendered as an SVG canvas using D3 v7.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed