Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE8-2(a)_Food_Tree

Public visualization

ICE8-2(a)_Food_Tree

0 stars0🌍 Public
Jjgaur96@gmail.com
Last edited Nov 9, 2025
Created on Nov 9, 2025
Forked from D3 Starter

This interactive tree diagram categorizes foods into fruits, vegetables, and dairy, with further subcategories like citrus and leafy greens. It uses D3.js v7’s `d3.hierarchy` and `d3.tree` to create the layout, with `d3.linkVertical` for the connecting links. Nodes are drawn as distinct SVG shapes—diamonds, circles, triangles, and squares—based on tree depth, using D3’s `d3.symbol` API. Each node is colored by hierarchical level, and the SVG is rendered and styled via a linked CSS file.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed