Part V: Interactive Visualization

Static charts tell a story. Interactive charts let the audience ask their own questions. Part V moves beyond the printed page into visualizations that respond to hover, zoom, filter, and click, opening up analytical possibilities that no static image can match.

The shift to interactivity is not just a technology change. It is a design change. When your audience can pan a map, hover over a data point to see its details, or filter a chart to a specific time range, you are no longer the sole narrator. You are building a tool for exploration. That means the design principles from Part II still apply, but they operate differently: instead of guiding the viewer along a single path, you are constructing an environment where many paths lead to valid insights. The chapters in this part teach both the technical skills and the design judgment that interactive visualization demands.

The five chapters cover three major libraries and two specialized domains:

  • Chapter 20: Plotly Express gets you to interactive charts in a single function call, covering the high-level API that handles the most common interactive visualization needs with minimal code.
  • Chapter 21: Plotly Graph Objects moves beneath the Express layer to the full Plotly object model, where you build complex, multi-trace, multi-axis layouts with complete control over every interactive behavior.
  • Chapter 22: Altair introduces a fundamentally different approach: the grammar of graphics, where you compose visualizations from data, marks, and encodings using a purely declarative syntax built on the Vega-Lite specification.
  • Chapter 23: Geospatial Visualization applies interactive techniques to maps, choropleths, and location data, combining geographic projections with hover tooltips and drill-down capabilities.
  • Chapter 24: Network and Graph Visualization addresses the specialized challenge of visualizing nodes, edges, and relationships, from social networks to dependency graphs, using interactive layouts that let users explore structure.

The progressive project takes a significant leap forward in this part. The climate dataset becomes an interactive Plotly figure with hover details, a range slider for time navigation, and zoom capabilities. It then gets a declarative Altair treatment. The geographic dimension comes alive as a choropleth showing regional temperature patterns across the globe.

Throughout these chapters, you will also confront the practical questions of deployment: interactive charts need to live somewhere, whether that is a Jupyter notebook, an HTML export, or a web application. Part VII addresses the full dashboard and production pipeline, but Part V lays the groundwork by ensuring every chart you build is ready to share.

By the end of Part V, you will command four plotting libraries across both static and interactive output. Part VI turns that broad toolkit toward specialized data domains that require dedicated visualization techniques.

Chapters in This Part