Skip to main content
100%

CS573 Final Project - Saturated Fat (g) vs Sodium (mg)

✓ Published0🌍 Public
Ppbruss@bu.edu
Last edited Oct 24, 2024
Created on Oct 24, 2024

This interactive scatter plot visualizes the relationship between saturated fat (in grams) and sodium (in milligrams) for menu items from six popular fast-food restaurants, using a Kaggle dataset. It shows individual menu items as circles, with the circle size encoding calorie count and color representing the restaurant. Built with D3.js v7, the plot uses `scaleLinear`, `scaleOrdinal`, and `schemeCategory10` to map data values, while a custom tooltip appears on hover. The visualization is responsive, using `@pbruss/responsive-axes` to adapt the axes to the container's dimensions.

AI-generated description

CS573 Final Project Chart showcasing a <b>responsive</b> Saturated vs Sodium levels scatter plot for menu items belonging to six of the most popular fast food restaurants.

Dataset: https://www.kaggle.com/datasets/joebeachcapital/fast-food

MIT Licensed

Similar vizzes