Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
GGeolffrey S Mena
Last edited Aug 7, 2019
Created on Aug 7, 2019
Forked from Making a Bar Chart

This bar chart visualizes the top 10 most populous countries based on 2019 estimates from the United Nations’ World Population Prospects. It shows population values on the x-axis and country names on the y-axis, with steel-blue bars sorted by descending population. Using D3 v5, the code employs `scaleLinear` and `scaleBand` for axes, `axisLeft` and `axisBottom` for ticks, and `format` to abbreviate large numbers (e.g., “1.43B”). Population data is loaded from a CSV file and scaled by 1,000. The chart is rendered as SVG with margins, axis labels, and a title.

AI-generated description

This is a bar chart shows population of the top 10 most populous countries. The data comes from the year 2019 estimates in World Population Prospects 2019

MIT Licensed

Similar vizzes