Temperature in Different Cities
This visualization shows temperature readings across seven cities—San Francisco, Bangalore, Boston, Geneva, Rio de Janeiro, Shanghai, and Singapore—for one week in 2015, using small multiples area charts arranged in a vertical facet by city. The example deliberately demonstrates poor visualization choices: color carries no meaning, and comparing values across the separate charts is difficult. Built with Vega-Lite embedded via vega-embed, the chart encodes time on the x-axis and temperature on the y-axis, with the `row` channel grouping by city. Data comes from the Sense Your City project, processed from sensor readings and loaded with d3.csv.
AI-generated descriptionSmall multiples area chart for one week in 2015.
This is an example of how not to visualize data:
- Color is meaningless
- It's difficult to compare across area charts
Draws from
- News Source by Age Grouped Bar Chart for Vega-Lite setup.
- Vega-Lite: Trellis Area Example
Also related - Vega-Lite GitHub Issue: Specify Label Width for Facet
Data: a week of rich sensor data collected by the "Sense Your City" project.
Contains:
- Hourly readings for one week
- Different cities: San Francisco, Bangalore, Boston, Geneva, Rio de Janeiro, Shanghai, Singapore
- Various mertics from sensors: temperature, light, air quality, sound, humidity, dust
The data was collected from the (now defunct) Data Canvas - Sense Your City Project. The data was filtered using the data processing script found in GitHub: curran/data/senseYourCity.