Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

09a4370722174b469fed74e9dee4f8b9

Making a Bar Chart

0 stars1🌍 Public
GGeolffrey S Mena
Last edited Aug 7, 2019
Created on Aug 7, 2019
Forked from Making a Bar Chart

This bar chart displays the population estimates for the top 10 most populous countries in 2019, sourced from the World Population Prospects. The visualization uses a linear scale for the x-axis and a band scale for the y-axis, with bars rendered as SVG rectangles. The code leverages D3 v5 modules like `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the chart, including custom tick formatting that converts numbers to billions. Population values are parsed from a CSV file and multiplied by 1000 to reflect actual figures.

AI-generated description

This is a bar chart shows population of the top 10 most populous countries. The data comes from the year 2019 estimates in World Population Prospects 2019