Skip to main content
100%

CS573 Final Project - Cholesterol (mg) vs Sodium (mg)

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

This scatter plot visualizes the relationship between sodium and cholesterol content in fast food menu items, with each point’s radius encoding caloric value and color indicating the menu item name. The plot uses D3’s `scaleLinear`, `axisLeft`, and `extent` functions for axes and scaling, while `@pbruss/responsive-axes` handles responsive resizing. Hover interactions reveal a tooltip with item, company, sodium, cholesterol, and calories. The code imports data from the `@pbruss/fast-food-nutrition-dataset-v3` package and uses `circleOpacity` to manage point transparency.

AI-generated description

A responsive scatter plot.

MIT Licensed

Similar vizzes