Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed