Skip to main content
100%

Fork of Making a Bar Chart

✓ Published0🌍 Public
Aalvasilvao
Last edited Feb 19, 2022
Created on Feb 19, 2022
Forked from Making a Bar Chart

This bar chart visualizes the population of the ten most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The chart uses D3 v5’s `scaleLinear` for the x-axis population scale and `scaleBand` for the categorical y-axis, with the population values converted from thousands to absolute numbers before rendering as SVG rectangles. Customized `axisBottom` and `axisLeft` axes remove default domain lines, add grid lines, and label the population axis with a custom tick format that abbreviates large numbers (e.g., replacing "G" with "B").

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