🌍 Public
Viewing a saved revision (read-only)
c4931b3316ff4de1bde5748f16462704
Week 4 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 descriptionA bar chart showing the top 10 most populous countries on Earth as of January 1st 2024.
Challenge
- Fork this viz and modify it to show your own data