Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

72376500b6054d21a05f683cfbf0c175

Fork of Fork of Vega-Lite API Template

0 stars0🌍 Public
LLove Wessman
Last edited Jan 25, 2022
Created on Jan 25, 2022

This visualization displays the US population by age, sex, and year from 1850 to 2000, using grouped bars to compare age cohorts over time. Built with the Vega-Lite API, it encodes year on the x-axis, population counts on the y-axis, and age groups as color, with tooltips revealing sex and population values. The code loads CSV data via `d3.csv` from a GitHub gist, configures axes and label styling through the `config` object, and renders the chart using the Vega, Vega-Lite, and Vega-Tooltip libraries.

AI-generated description

A visualization constructed using the vega-lite-api.

Visualizes US population separated by age groups and sex 1850 - 2000.