Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Playing with Foood

Public visualization

Viewing a saved revision (read-only)

4f7f25f95b3948eaa56b0da24ab8276a

Playing with Foood

0 stars2🌍 Public
RRyan Offstein
Last edited Sep 23, 2025
Created on Sep 23, 2025

This interactive scatterplot displays the nutritional composition of foods from the USDA’s Foundation Foods dataset. Users can independently map select nutrients to the x-axis, y-axis, and circle radius, with a toggle for logarithmic or linear scaling on both axes. Built with React and D3.js (v7), the visualization uses `scaleLog` and `scaleLinear` for axes, `axisBottom` and `axisLeft` for ticks, and `extent` to compute domains. Hovering over a circle reveals the food’s description via a tooltip.

AI-generated description