Introduction
In the previous chapters, we went through a variety of techniques for visualizing data effectively based on the type of features in the dataset and learned how to introduce interactivity in plots using the plotly
library. The second section of this book, starting with this chapter, will guide you on building interactive visualizations with Python for a variety of contexts. An observation made in the previous chapter was that when it comes to introducing interactivity in certain types of Python plots, plotly
can sometimes be verbose, and may involve a steep learning curve. Therefore, in this chapter, we'll introduce altair
, a library designed especially for generating interactive plots. We will demonstrate how to create interactive visualizations with altair
for data stratified with respect to any categorical variable. For illustration, we will use a publicly available dataset to generate scatter plots and bar plots with the features in the dataset and add a variety...