Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Ttkreglhn
Last edited Apr 15, 2019
Created on Apr 15, 2019
Forked from Making a Bar Chart

This bar chart shows the population distribution across age groups (from 0-4 to 95+ years) for a given population. Using D3.js version 5, it employs `d3.scaleLinear` and `d3.scaleBand` to map population values and age categories to the x and y axes, respectively. The SVG includes axes via `d3.axisLeft` and `d3.axisBottom`, with bars rendered as `rect` elements filled in steel blue. The data is loaded from a CSV file containing country and population columns.

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.

MIT Licensed

Similar vizzes