Skip to main content
Public

Share visualization

Loading preview…

CS573 Final Project - Cholesterol (mg) vs Sodium (mg) w/ category grouping

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

CS573 Final Project - Cholesterol (mg) vs Sodium (mg) w/ category grouping

1
Ppbruss@bu.edu
Last edited Oct 31, 2024
Created on Oct 24, 2024

This scatter plot shows the relationship between sodium and cholesterol for menu items from six fast food chains, with circle size encoding calorie count and color distinguishing each restaurant. The visualization uses d3.scaleLinear for axes, d3.scaleOrdinal with schemeCategory10 for color coding, and includes interactive tooltips on hover. The chart is rendered responsively using the @pbruss/responsive-axes library, pulling data from a Kaggle fast food nutrition dataset.

AI-generated description

CS573 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

Comments

Sign in to join the discussion.

MIT Licensed