Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

6cf43549c8bb411ab58c2c6bcf8faa36

Making a Bar Chart

0 stars0🌍 Public
Rram-iyer
Last edited Feb 20, 2019
Created on Feb 20, 2019

This bar chart displays the populations of the ten most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The code uses D3 v5 to load the CSV data, scale the values, and render the chart as SVG elements. It constructs linear and band scales with `scaleLinear` and `scaleBand`, and draws axes via `axisLeft` and `axisBottom`. Population figures are multiplied by 1,000 after parsing.

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.