Play through population change across Taiwan’s 22 counties, compare their trends and explore household income. A 2017 hackathon project, rebuilt in 2026.
An interactive atlas of population and household finances across Taiwan. Monthly population data starts in 1997, with annual income and savings indicators alongside it. A playback timeline, county comparison charts and shareable URLs turn the original 2017 Chiayi hackathon project into a tool for exploring change.
What it's good for
Anyone wondering whether a county grows from births or from people moving in can watch it month by month since 1997, with that month's news beside the map, and send the exact view as a link instead of a screenshot of a spreadsheet.
Diagrams
Main paths only. The edge cases stayed in the code.
Nine years later: 20,082 overlapping numbers, 5 different, each by 0.01.
Point at a box to see what it connects to.
Run the data updatenpm run data:update
Download the official tablesLinks looked up each time
Fetch Wikipedia's yearly eventsOne page at a time
Load the 2017 hackathon dataNine years old, still checks out
Every name in the county table?
Stop the buildNothing dropped quietly
What's in the new cell?A dash means zero
Overwrite and log the differenceEvery changed number reported
Keep the older valueBlank means unknown
More cells to merge?
Tag each event with countiesOld county names count too
Write the JSON the app loadsNo timestamps, same every time
CI rebuild matches the commit?
Check passes
Check failsData out of step with inputs
Run the data update(npm run data:update) → statistics: Download the official tables → news: Fetch Wikipedia's yearly events
Download the official tables(Links looked up each time) → Load the 2017 hackathon data
Fetch Wikipedia's yearly events(One page at a time) → Load the 2017 hackathon data
Load the 2017 hackathon data(Nine years old, still checks out) → Every name in the county table?
Every name in the county table? → yes: What's in the new cell? → no: Stop the build
Stop the build(Nothing dropped quietly)
What's in the new cell?(A dash means zero) → number or dash: Overwrite and log the difference → blank: Keep the older value
Overwrite and log the difference(Every changed number reported) → More cells to merge?
Keep the older value(Blank means unknown) → More cells to merge?
More cells to merge? → yes: What's in the new cell? → no: Tag each event with counties
Tag each event with counties(Old county names count too) → Write the JSON the app loads
Write the JSON the app loads(No timestamps, same every time) → CI rebuild matches the commit?
CI rebuild matches the commit? → same: Check passes → different: Check fails
Check passes
Check fails(Data out of step with inputs)
Features
Population, migration, income and savings indicators
Animated timeline with adjustable playback speed
Compare trends across up to four counties
Government open data with reproducible conversion scripts
Social increase in May 2008: New Taipei selected, compared with Taoyuan and Chiayi County
What I learned
The 2017 JSON held up: of 20,082 overlapping population numbers only 5 differed, each by 0.01 from source corrections, and all 1,890 household figures matched.
Government tables write '-' for zero, and the data backs it: in 39 of the 40 months where natural increase is '-', total growth equals social growth.
Download links can't be hard-coded: the household-survey files change path every year, so each fetch looks them up on data.gov.tw first.
How it fits together
Simplified on purpose. The real thing has more arrows and at least one config file nobody understands.
Screenshots
On a phone the metric menu folds into one button; here, total growth in June 2020
The 2017 original, in a green-to-red scale that red-green colour-blind readers can't use
Drag a schedule into place, draw dependencies and see the critical path. Switch to Mermaid text without losing the plan. Everything stays in your browser.
Converts and edits images, audio, video, PDFs and documents entirely in the browser. Nothing gets uploaded, mostly because there is nowhere to upload it to.