Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Week 4 Simple Bar Chart

Public visualization

Viewing a saved revision (read-only)

c4931b3316ff4de1bde5748f16462704

Week 4 Simple Bar Chart

0 stars1🌍 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 populous countries on Earth as of January 1st 2024.

Challenge

  • Fork this viz and modify it to show your own data