Skip to main content
100%

two

✓ Published1🌍 Public
Mmuchakurthisahithipatel@gmail.com
Last edited Nov 10, 2025
Created on Nov 10, 2025
Forked from D3 Starter

A hierarchical tree visualization maps food categories such as Fruits, Vegetables, and Grains through types to individual items, with each node colored by depth and displaying nutritional calorie data via hover tooltips. The chart uses D3.js v7 with the `d3.hierarchy` and `d3.tree` layout functions to position nodes and links, rendered as an SVG with a custom tooltip div. Data is embedded inline from a food dataset, with link and node styling defined through CSS classes.

AI-generated description

Food Categories Tree Visualization

A hierarchical D3.js tree visualization showing the relationship between food categories, types, and individual items with nutritional information.

Structure

MIT Licensed

Similar vizzes