Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Starter - making bar chart

Public visualization

D3 Starter - making bar chart

0 stars1🌍 Public
Mmaxthamt
Last edited Mar 26, 2021
Created on Mar 18, 2021
Forked from D3 Starter

This bar chart displays the population of the top 10 most populous countries, using 2019 estimates from the United Nations World Population Prospects. The chart encodes population on a linear x-axis and country names on a banded y-axis, with steel-blue rectangles representing each value. The visualization is built with D3 v5, using `d3.csv` to load the data, `d3.scaleLinear` and `d3.scaleBand` for scales, and `d3.axisLeft` and `d3.axisBottom` for axes. The population values are converted from strings to numbers and multiplied by 1000 before rendering.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed