Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

2fe62520b81742d7bd8e26a24f8aeb31

Making a Bar Chart

0 stars0🌍 Public
AAlain Jennotte
Last edited Jun 11, 2019
Created on Jun 11, 2019
Forked from Making a Bar Chart

This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The visualization renders each country as a single steelblue rectangle on an SVG canvas. Built with D3 v5, the code loads data from a CSV file and uses the `d3.scaleBand` and `d3.scaleLinear` APIs to map country names to the x-axis and population values to the y-axis, respectively. The chart is minimal, with no axes or labels, focusing solely on the relative bar heights.

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.