two
✓ Published1🌍 Public
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 descriptionFood 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