Fork of CS573 Final Project - Cholesterol (mg) vs Sodium (mg) w/ category grouping, legend, tooltip & interactive color functionality
This scatter plot visualizes the relationship between sodium and cholesterol levels in menu items from six major fast-food chains, with bubble size indicating caloric content. The visualization uses D3.js APIs including `select`, `scaleLinear`, `axisLeft`, and `zoom` to provide interactive pan-and-zoom functionality. Data from a Kaggle fast-food nutrition dataset is rendered as color-coded circles, with a tooltip displaying item details on hover and an interactive legend for toggling restaurant categories.
AI-generated descriptionCS573 Final Project Chart showcasing a responsive Sugar vs Sodium levels scatter plot for menu items belonging to six of the most popular fast food restaurants. Bubble size is derived by the calories of the menu item.
Bubbles 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)
Interactive Features include:
- Tooltip data view
- Interactive color legend
Dataset: https://www.kaggle.com/datasets/joebeachcapital/fast-food