Skip to main content
100%

Fastfood Scatter Plot

✓ Published2🌍 Public
Wwangjonathan
Last edited Oct 31, 2018
Created on Sep 9, 2018
Forked from Making a Bar Chart

This scatter plot visualizes nutritional data for fast food menu items, plotting calories against protein content. Each circle represents a menu item, colored by its food category using a categorical color scale. The visualization includes labeled axes, grid lines, and a clickable legend for category selection. The visualization is built with D3 v5, using `scaleLinear`, `axisLeft`, `axisBottom`, and `scaleOrdinal` APIs. Data is loaded via D3's `csv` function from a McDonald's nutritional dataset (2017). The SVG rendering includes axis tick marks, axis labels, and a title, with legend items that respond to click events.

AI-generated description

This scatter plot shows data about the protien that is contained in each item on the fastfood menu, from Nutritional Data for Fast Food 2017.

MIT Licensed

Similar vizzes