Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Population of Towns on the South Shore Of MA

Public visualization

Viewing a saved revision (read-only)

5a0269174f5345af87e66d8fb92311d1

Population of Towns on the South Shore Of MA

0 stars2🌍 Public
SSean Thornton
Last edited Oct 1, 2025
Created on Sep 24, 2025

This visualization shows how the populations of eight Massachusetts South Shore towns changed from 2000 to 2023, drawing on CSV data that includes yearly population figures and year-over-year changes. It displays multiple lines on a single chart, with each town color-coded and matched to a legend below, making it easy to compare trends like Weymouth’s sharp increase or Hull’s relative stability. The chart uses React to manage state and D3 v7’s `scaleLinear`, `line`, `axisBottom`, and `axisLeft` APIs to build the axes and plot the curves. Population values are formatted with commas via `tickFormat` and `toLocaleString`.

AI-generated description