Skip to main content
Public

Share visualization

Loading preview…

Temperature in Different Cities

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Temperature in Different Cities

0
Ssleyus
Last edited Nov 8, 2019
Created on Nov 8, 2019

Small multiples of area charts show hourly temperature readings for one week across seven cities, using Vega-Lite’s `row` facet with a nominal color encoding that is intentionally meaningless. The visualization embeds Vega-Lite 2.0 and d3.v4, with a Vega spec generated dynamically from CSV data of the Sense Your City project. It highlights how color and area under the curve fail to support comparison, as the charts are difficult to read against each other, and resizes responsively via `window.addEventListener('resize', render)`.

AI-generated description

Small multiples area chart for one week in 2015.

This is an example of how not to visualize data:

  • Color is meaningless
  • Area under the curve is meaningless
  • It's difficult to compare across area charts

Draws from

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.

Comments

Sign in to join the discussion.

MIT Licensed