Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Hhbzaheer
Last edited May 26, 2020
Created on May 26, 2020
Forked from Making a Bar Chart

This bar chart displays the populations of the ten most populous countries, based on 2018 estimates from the United Nations World Population Prospects. It uses D3 v5 with SVG rendering, scaling linear axes for population and band scales for country names. The code customizes the axes by removing domain lines, formatting tick labels with `d3.format` to abbreviate billions, and adding axis labels and a title. Data is loaded 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