Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

a6765949e0284f58b41218508ee48ce5

Making a Bar Chart

0 stars1🌍 Public
RRicardFabien
Last edited Mar 2, 2020
Created on Mar 2, 2020
Forked from Making a Bar Chart

This bar chart displays the population of the top 10 most populous countries from the 2018 United Nations World Population Prospects estimate, with each bar’s length scaled by population and countries listed on the y-axis. The visualization uses D3 v5’s `csv` loader to parse the data, `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisBottom` with custom tick formatting (e.g., converting billions to "B") and a population axis label. It renders to SVG, with a title, removed axis domain lines, and steelblue bars.

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.