THINK FIRST·CODE LATER

← All labs

Encoding studio: one dataset, five encodings

Problem

Use the CityPulse table date, district, pm25 (6 districts × 30 days; any similar dataset of your own also works). In Altair, build five different charts of the same data — for example a line chart, a bar chart of means, a box plot or strip plot, a heat map, and small multiples.

For each chart write: (1) marks and channels; (2) the task (action + target) it supports best; (3) its effectiveness for that task, citing the channel ranking; (4) one task it supports badly. Finally, choose the chart you would put first on a dashboard for city officials and justify the choice.

Include the Altair code of one chart.

Work it out on paper, in a document or here, then compare with the model answer. Your answer stays in your browser — it is never sent to or stored on the server.