Skip to main content
100%

07 - let's make a bar chart - dataviz 2018

✓ Published1🌍 Public
Zzach b.
Last edited Nov 16, 2021
Created on Nov 15, 2021

This bar chart displays the population of the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects. The visualization uses D3 v7’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to map population values to horizontal bar lengths and country names to vertical bands. Data is loaded from a CSV file via `d3.csv`, with population values multiplied by 1,000 during preprocessing. The SVG rendering applies a steelblue fill to bars, with margins and axes configured to organize the categorical comparison clearly.

AI-generated description

datraviz 2018 #7 - bar chart 1, csv file

-- This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017.

MIT Licensed

Similar vizzes