Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart

Public visualization

Viewing a saved revision (read-only)

670056db1b8b4202973a68d9944b1f29

Bar chart

0 stars0🌍 Public
BBhagyashreeU
Last edited May 14, 2021
Created on May 14, 2021
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries, with data from the 2018 United Nations World Population Prospects. It uses d3.csv to load the data, converting population values to thousands, then renders horizontal bars with d3.scaleLinear and d3.scaleBand. The chart customizes D3 axes by removing the y-axis domain and tick lines, and formats x-axis ticks using d3.format to abbreviate large numbers as billions.

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.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.