Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

fe17445cd89e4ebfb430f9e5117573ca

Making a Bar Chart

0 stars1🌍 Public
MMercPai
Last edited Jun 9, 2019
Created on Jun 9, 2019

This bar chart shows the population of the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects. The chart displays horizontal bars with country names on the y-axis and population values on the x-axis, using an SVG rendering approach. The code uses `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` from d3 v5 to load the data, scale the values, and draw the axes and rectangles.

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.