Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

702fefb397904d88ad00c1e9e38645ea

Making a Bar Chart

0 stars1🌍 Public
JJaohar Kehinde Oseni
Last edited Apr 29, 2020
Created on Apr 29, 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. The D3 v5 code loads CSV data, converts population values to absolute numbers, and renders an SVG with linear and band scales. It customizes axes by removing domain lines, applying a tick format that abbreviates large numbers (e.g., ’G’ to ’B’), and adding an axis label. The visualization uses `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, `axisBottom`, and `format`.

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.