Re:Show HN: CIA World Factbook Archive (1990–2025), searchab...
by kshri24 on Sunday February 22, 2026 @08:54PM
(#47117088)
There is a bug in the time series charts. Data needs to be normalized prior to charting. For example: https://cia-factbook-archive.fly.dev/archive/field/IN/Broadb...
[ Parent
| on HN ]
Re:Show HN: CIA World Factbook Archive (1990–2025), searchab...
by MilkMp on Monday February 23, 2026 @12:00AM
(#47118336)
Found the problem, the total regex doesn't handle magnitude suffixes:
2018: total: 17,856,024 → parses as 17856024 (correct raw count) 2020: total: 18.17 million → parses as 18.17 (WRONG - drops "million") 2025: total: 39.3 million → parses as 39.3 (WRONG) So the chart jumps from ~18 million down to ~18, making it wrong. The fix is to handle "million/billion/trillion" after total.
Just deployed a new bug fix.
Thanks for bringing this to my attention!