Skip to main content
100%

Making a Barchart

✓ Published2🌍 Public
CCaleb
Last edited Jun 17, 2020
Created on Jun 17, 2020
Forked from HTML Starter

This bar chart displays the population of the top 10 most populous countries in 2020, using data from the UN World Population Prospects. The chart shows population values on a linear x-axis and country names on a banded y-axis. Built with D3 v5, it uses `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load data and render SVG rectangles. The SVG output features steel-blue bars with text labels, and the data is preprocessed by multiplying population values by 1000.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2020 in World Population Prospects 2020 according to the UN.

MIT Licensed

Similar vizzes