Skip to main content
100%

Food Tree

✓ Published0🌍 Public
CCurran Kelleher
Last edited Aug 13, 2024
Created on Aug 12, 2024
Forked from Circles with D3

A radial tree visualization displays estimated macronutrient percentages (fats, protein, carbs) for various foods, with each leaf node showing a small pie chart. The hierarchical layout groups foods into categories like grains, fruits, and proteins, using `d3.tree` with a radial size. Pie slices are rendered via `d3.pie` and `d3.arc`, while `d3.scaleOrdinal` maps the three nutrients to distinct colors. Data is embedded in the source as generated content. A color legend clarifies the nutrient color coding.

AI-generated description

Estimated macronutrients for various foods, arranged in a radial tree, with pie charts at the leaf nodes.

MIT Licensed

Similar vizzes