Cartogram.js sketch glitch

Little experiment with cartograms

As a geo/map person, I’ve always been into cartograms, despite how hard they are to read, the lines are just lovely. Cartograms are computationally pretty fancy and until recently most of the cartogram algorithms were clunky scripts or wrapped up in desktop tool. However, there are smart people out there who’ve made all that stuff accessible in javascript for people like me.

This was just a little P5.js sketch using cartogram.js by Shawnbot that distorts voter data from New Zealand beyond it’s borders. I thought the animation and deformation looked intriguing and wanted to document it.

My sketch.js is total spaghetti, but I figure I can clean it up later…maybe a geo-cartogram glitch series is in my future…

See the sketch here: