Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
KKareem Naguib
Last edited Jan 25, 2020
Created on Jan 25, 2020
Forked from Making a Bar Chart

This bar chart ranks the top 10 most populous countries in 2018, with population values from the United Nations World Population Prospects 2017. It uses D3 v5’s `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to render an SVG with a customized x-axis that abbreviates large numbers using `format(“.3s”)`. The chart includes axis labels, a title, gridlines, and excludes the y-axis domain and tick lines for a cleaner look. Data is loaded from a CSV and converted to thousands.

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. It also demonstrates customization of D3 axes.

MIT Licensed

Similar vizzes