Skip to main content
100%

Fork of Making a Bar Chart

✓ Published1🌍 Public
CComplicated Phenomenon
Last edited May 3, 2021
Created on May 3, 2021
Forked from Making a Bar Chart

This bar chart displays the top 10 most populous countries based on 2018 United Nations population estimates, with values converted from thousands to absolute numbers. The visualization uses D3 v5’s `scaleLinear` for the x-axis, `scaleBand` for categorical country labels, and custom axis formatting via `format('.3s')` to abbreviate large numbers. Grid lines are generated with `tickSize(-innerHeight)`, while axis labels and a title are added directly to the SVG. Data loads asynchronously from a CSV file using `d3.csv`.

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