CS573 Final Project - Cholesterol (mg) vs Sodium (mg) w/ category grouping, legend & tooltip functionality
This scatter plot visualizes the relationship between cholesterol and sodium levels across menu items from six fast-food restaurants, using the fast-food nutrition dataset from Kaggle. Circle size encodes calorie content, while color indicates the restaurant brand, with a legend and hover tooltip displaying item details. The visualization is built with D3.js, utilizing `scaleLinear`, `axisLeft`, and custom mouse event handlers for interaction, alongside the `@pbruss/responsive-axes` library for responsive resizing.
AI-generated descriptionCS573 Final Project Chart showcasing a <b>responsive</b> Cholesterol vs Sodium levels scatter plot for menu items belonging to six of the most popular fast food restaurants. Circle size is derived by the calories of the menu item.
Circles are color-coded by restaurant name as follows:
- McDonald's (Pink)
- Wendy's (Gray)
- KFC (Brown)
- Pizza Hut (Green)
- Burger King (Orange)
- Taco Bell (Purple)
Dataset: https://www.kaggle.com/datasets/joebeachcapital/fast-food