Code to make treemap

An analog clock reading 6:002023-07-06 / 2023-W27-4T18:00:00-05:00 / 0x64a74770

Categories: programming, fun, geography

Earlier this week I posted about this treemap I made.

Treemap showing the population of every U.S. county or equivalent, with counties grouped by core-based statistical areas and combined statistical areas

(Interactive version)

Today, I have placed the code to produce this treemap in a Codeberg repo. It's not the most beautiful code in the world. (If I were really ambitious, I'd turn it into a proper library.)