Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

bce4bf26ca1a44dca571958a6c616696

Making a Bar Chart

0 stars1🌍 Public
AAnna Lopez
Last edited Apr 6, 2020
Created on Apr 6, 2020

This bar chart displays the populations of the ten most populous countries, using data from the United Nations World Population Prospects 2017. The chart renders as SVG, with horizontal bars ordered by country name along the y-axis and population counts on the x-axis. The visualization is built with D3 v5, utilizing `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to position the bars and axes. Population values are read from a local CSV file and scaled by a thousand before being mapped to bar widths.

AI-generated description

This bar char shows populataion of the top 10 most populous countries. The data comes from the year 2018 estimaate in United Nations: World Population Prospects 2017.