Skip to main content
100%

Week 4 Simple Bar Chart

✓ Published1🌍 Public
IIan Coolidge
Last edited Feb 8, 2024
Created on Feb 8, 2024
Forked from Simple Bar Chart

This bar chart displays the top 10 cereals with the highest sodium content per serving, sourced from the 80 Cereals Kaggle dataset. The chart uses a light gray background to delineate the plotting area, with bars rendered as rectangles. The visualization is built using D3.js version 7.8.5, employing `scaleBand` and `scaleLinear` for the axes, and the `join` API for efficient SVG element creation. The code sorts the data by sodium values and slices the top 10 entries before rendering.

AI-generated description

A bar chart showing the top 10 most caloric cereals in the 80 Cereals dataset.

MIT Licensed

Similar vizzes