Skip to main content
100%

Making a Bar Chart Updated Data

✓ Published1🌍 Public
Iinskoe@central.edu
Last edited May 19, 2025
Created on May 19, 2025
Forked from Making a Bar Chart

This bar chart displays the top 10 most populous countries using 2025 population projections from a CSV file, highlighting China and India in steel blue with inline labels while other bars appear gray. Built with D3 v5, the visualization uses `d3.csv`, `scaleLinear`, and `scaleBand` to map population values and country names, with SVG rendering for the axes, grid lines, and bar elements. The code applies formatting via `d3.format` to display tick values in billions and labels with commas, and styles the chart through external CSS.

AI-generated description

Updated population data to 2025 projections

MIT Licensed

Similar vizzes