Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
IIrtaza
Last edited Dec 12, 2020
Created on Dec 12, 2020
Forked from Making a Bar Chart

This bar chart displays the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects. It shows each country’s population as a horizontal bar, with formatted axis labels (e.g., converting thousands to billions) and gridlines. The visualization uses D3 v5 APIs including `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to construct the chart, rendering via SVG. The axis tick format is customized by replacing ‘G’ with ‘B’ in D3’s compact notation.

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