Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

CS573 Final Project - Average Cholesterol (mg) Levels by Restaurant

Public visualization

CS573 Final Project - Average Cholesterol (mg) Levels by Restaurant

0 stars1🌍 Public
Ppbruss@bu.edu
Last edited Nov 30, 2024
Created on Nov 15, 2024

This interactive bar chart compares average cholesterol levels (in milligrams) across fast food restaurant chains, using data from a Kaggle nutrition dataset. Each bar is color-coded by company, and hovering over a bar turns it black while displaying a tooltip with the precise average value. Built with D3, the visualization uses `scaleBand` and `scaleLinear` for axes, and the `viz()` function renders the chart with responsive dimensions from `observeResize`. The tooltip and hover interactions are implemented with D3 `select` and event listeners.

AI-generated description

An interactive and responsive bar chart showing the average cholesterol levels by fast food restaurant. Includes a tooltip feature to view the exact values.

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

Comments

Sign in to join the discussion.

MIT Licensed