Skip to main content
100%

Making a Bar Chart

✓ Published2🌍 Public
Ssourcebox-bug
Last edited Apr 12, 2019
Created on Apr 11, 2019
Forked from Making a Bar Chart

This bar chart visualizes the 2018 population estimates for the ten most populous countries, with data from the United Nations World Population Prospects 2017. It displays horizontal bars ordered by population, using a linear scale for the x-axis and a band scale for country names on the y-axis. The visualization is built with D3 v5, using `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render the SVG elements. Population values are converted from thousands to raw numbers before plotting.

AI-generated description

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