Post

🧵Okay let's do some BTS for Axios' elections #dataviz. 1/5: We used <canvas> for our big maps, which means we had to do some tricks with color hashes to get interactivity. What the reader sees vs. what the computer sees. Details on how it works: observablehq.com/@camargo/can...

Jacque Schrag@jacqueschrag.com

With so much election #dataviz to choose from, pretty pleased to have the map I worked on for Axios included. Thinking about sharing some behind-the-scenes look at what we did, so stay tuned for that.

Good question! Mainly performance reasons. The frequency that these maps are updating with new data + the amount of DOM elements being created (depending on the map) made canvas a better option for us. With multiple maps, SVGs started to get noticeably sluggish.

lol, yeahh, turning point for me was "how might we render a zillion timepoints, animate them, and make it work on 8 y/o ipads." My transitions never got quite as smooth as y'alls though 🤣