Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars0๐ŸŒ Public
Rram-iyer
Last edited Feb 19, 2019
Created on Feb 19, 2019

This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The data is loaded from a CSV file and rendered as horizontal bars on an SVG canvas. The code uses d3.csv, d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom from D3 v5, with bars filled in steelblue and sized proportionally to population values. The chart includes axes generated via the axis functions, and population figures are multiplied by 1,000 to reflect full counts.

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.

Comments

Sign in to join the discussion.

MIT Licensed