Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Book LRND3 v4 Chapter 5

Public visualization

Viewing a saved revision (read-only)

733d78ab91aa411c90d6939445beeaac

Book LRND3 v4 Chapter 5

0 stars0🌍 Public
Ssakhabutdinov
Last edited Jan 13, 2020
Created on Jan 8, 2020

This interactive chart shows the UK prison population from 1900 to 2013, using animated bar charts to illustrate changes over time. Buttons allow users to jump between historical periods, with bars highlighting specific years (e.g., wartime) and text providing context. The visualization is built with D3 v5, using `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with transitions animating bar height and position. Data is loaded from a CSV file via a custom `csvParse` function, and UI elements are added programmatically.

AI-generated description

Chapter5 of the book by Rinninsland and Teller