Adding Interactivity

Interactivity enables our audience to engage with the chart and explore the data on a whole new level. It ranges from tooltips providing additional information when hovering over a point to selections allowing users to filter and highlight specific areas of interest.

There are two main types of interactivity:

  • Passive interactivity refers to features that allow the audience to interact with the chart without changing its state, such as tooltips or hover effects.

  • Active interactivity involves changing the chart’s state in response to user input.

Within these two categories, we can add interactivity to our Altair charts in several ways.

  • Use sliders or drop-down ...