Skip to main content
100%

Population and age

✓ Published0🌍 Public
Hhamzavg
Last edited Jun 8, 2022
Created on Jun 6, 2022
Forked from HTML Starter

This visualization shows the U.S. population distribution across age groups from 2010 to 2019, using a slider to animate between years. It renders an SVG bar chart with D3 v4, where each bar’s height and color encode population size via `d3.scaleLinear` and `d3.scaleQuantile`. Transitions smoothly update bars and axes over two seconds. Data is loaded from ten CSV files using `d3.queue` and `d3.csv`. The code relies on D3’s `scaleBand`, `axisBottom`, `axisLeft`, and `transition` APIs.

AI-generated description
MIT Licensed

Similar vizzes