Skip to main content
100%

CS573 Final Project - Average Saturated Fat (g) Levels by Restaurant

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

This interactive bar chart displays the average saturated fat content (in grams) across different fast food restaurant chains, using data from a Kaggle dataset on fast food nutrition. The visualization aggregates rows by restaurant company and computes mean saturated fat values, rendering them as color-coded bars with a light gray inner plot background. Built with D3.js (v7), it employs `scaleBand` and `scaleLinear` for positioning, while a custom tooltip appears on mouse hover to show precise values. The chart is responsive, using the `observeResize` and `axes` helper APIs to adapt its dimensions and labels dynamically.

AI-generated description

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

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

MIT Licensed

Similar vizzes