Altair: Interactive Plots on the Web

Adding interactivity to data visualizations can be helpful for better exploring the data and fun. Sharing interactive visualizations online extends the benefits to others. In this post I will show some examples of using the Altair library to create and share some simple interactive visualizations. The examples below are largely derived from the excellent Altair gallery—I claim no original work on these but enjoyed working with them to learn the mechanics of interactive visualization in Altair.

Digitize a Graph

I recently needed to extract data from the screenshot of a graph. The data was provided by a third party in that format so I had to work with what I was given.