Altair interactive charts: declarative grammar to linked brushing

11 steps · about 4 h 25 min · Intermediate

  1. Getting Started with Altair: Declarative Visualization Tool (article, SciCoding, 20 min)

    It starts with the basic chart-building pattern of data, mark and encoding, which everything else relies on.

  2. Altair: Interactive Plots on the Web (article, Matthew Kudija, 15 min)

    It explains the data, marks and encodings model, then adds tooltips and zoom. It uses an older Altair version, so treat it as a concept guide.

  3. Introduction to Altair in Python - GeeksforGeeks (article, GeeksforGeeks, 20 min)

    It gives short worked examples of scatter, line and faceted charts, so you can practise encodings and tooltips.

  4. Altair - Basic Interactive Plotting in Python (tutorial, CoderzColumn, 30 min)

    It covers many chart types (bar, histogram, heatmap and more) so you can see the same grammar applied across them.

  5. Altair: Declarative Charts With Python (tutorial, Real Python, 40 min)

    It teaches the declarative grammar in current Altair, then adds selections and a brush linked to a bar chart.

  6. Parameters, Conditions, & Filters — Vega-Altair documentation (doc, Vega-Altair docs, 35 min)

    It is the official explanation of variables, selections, conditions and filters, the building blocks of interaction.

  7. Interactive Data Visualization with Altair (article, Nicholas Vadivelu, 25 min)

    It builds interactions step by step, including a brush limited to one axis, which shows how selection options change behaviour.

  8. Multi-panel Scatter Plot with Linked Brushing — Vega-Altair documentation (reference, Vega-Altair gallery, 15 min)

    It is the canonical linked-brushing example: one interval selection that recolors points across two panels.

  9. Brushing Scatter Plot to Show Data on a Table — Vega-Altair documentation (reference, Vega-Altair gallery, 20 min)

    It shows how a brush can drive filtered views, here a table built with transforms.

  10. Expressions — Vega-Altair documentation (doc, Vega-Altair docs, 20 min)

    Once brushing works, expressions and slider-bound parameters give you finer control of interactivity.

  11. Altair Brushing — Panel (tutorial, HoloViz Panel, 25 min)

    The last step takes a brush selection back into Python to update a live table in an app.