Build an interactive data explorer with Altair
8 steps · about 3 h 40 min · Intermediate
- Prepare tidy data for a chart specification (guide, Vega-Altair documentation, 25 min)
Clear field names and types keep the later encodings and interactions understandable.
- Map fields to visual channels (guide, Vega-Altair documentation, 35 min)
Explicit encodings establish the static chart readers must understand before interacting.
- Apply visible data transformations (guide, Vega-Altair documentation, 30 min)
Filtering and calculation belong in a specification that can be inspected and reproduced.
- Create an interaction parameter (guide, Vega-Altair documentation, 30 min)
Parameters provide one model for selections, controls and values that update a chart.
- Bind filters to accessible controls (guide, Vega-Altair documentation, 25 min)
A labelled widget makes key filtering actions discoverable beyond pointer gestures.
- Use the legend as a selection control (guide, Vega-Altair documentation, 20 min)
Legend binding connects category meaning directly to highlighting behaviour.
- Link overview and detail with brushing (guide, Vega-Altair documentation, 30 min)
A coordinated view preserves context while focusing on a chosen region.
- Finish with readable labels and tooltips (guide, Vega-Altair documentation, 25 min)
Interaction cannot rescue unclear scales, titles, contrast or number formatting.