Data Visualization

Can we save the world with charts, maps and good design?

Tufte’s Principles

The Visual Display of Quantitative Information

  • Edward Tufte in 1983
    • history and development of information visualization
    • formulates principles of graphical integrity and principles of graphical excellence

The Visual Display of Quantitative Information

A Tool for Scientific Exploration

  • Broad Street cholera outbreak 1854
    • source of infection uknown
    • Dr John Snow draws map of cases
    • convinces authorities with map
  • Insight rather than pictures

Broad Street Cholera Outbreak

Broad Street Cholera Outbreak

Proportionality of Representation

“The representation of numbers should be proportional to the numerical quantities represented.”

Bad practice The Ugliest Chart

Radical makeover

Proportionality — A Non Trivial Example

  • Why is the data not displayed proportionally here?
  • Averages:
    Czech Republic ≈ Estonia

Clear Labeling

“Clear labeling should be used to defeat graphical distortion and ambiguity.”

Show Data Variation

“Show data variation, not design variation.”

Quote in Context

“Graphics must not quote data out of context.”

No context

Time context

Time and country context

Interactive Contextualization

Let the user choose time context

Creating Ducks

“It is all right to decorate construction but never construct decoration”

Mobilization of Elements

“Mobilize every graphical element, perhaps several times over, to show the data!”

  • Legend is
    • color guide
    • histogram
    • range selection
    • unit selection
  • Scaling based on

Technological Phallacy

“Occasionally designers seem to seek credit merely for possessing a new technology, rather than using it to make better designs”

Bad practice The Ugliest Chart

Radical makeover

Graphical Excellency

“…may well be the best statistical graphic ever drawn”

Carte figurative des pertes successives en hommes de l’Armée Française dans la campagne de Russie 1812

Carte figurative des pertes successives en hommes de l’Armée Française dans la campagne de Russie 1812

The Grammar of Graphics

The Grammar of Graphics

  • Leland Wilkinson in 1999
    • structured logic for programming graphics
    • different implementations
  • Aesthetics establish the relations of sensory attributes (color, shape, sound, etc.) to abstractions
  • Attributes are represented by properties of geometries (e.g. circles, lines, …)
  • Relations are determined by scales (e.g. logarithmic mapping of distances, color gradients, …)
  • Composition of plots via layering, faceting and concatenating

The Grammar of Graphics

Plot of Plots

Comparison of different software packages for creating data visualization

Grammar of Graphics in Practice

  • Declarative specification
    • one template - almost any plot
    • specification of an object that renders into visualization
  • Mapping data into visual attributes
    • long-formatted data
    • column corresponds to a dimension/variable to be visualized
    • number of visual dimensions should correspond to data dimensions

Practical Aspects

Mobile View

More than 50 percent of global internet traffic is on mobile devices

  • Nice to have
    • fold of multiple views / facets
    • removing of elements
    • adaption of font sizes, element sizes, margins and paddings

Accessibility

  • Don’t rely on color alone
    • direct labels, shapes, line types or patterns
    • palettes that work with color vision deficiencies
  • Sufficient contrast
    • text and marks against the background (contrast checker)
    • readable font sizes, text positioning
  • Alternatives for screen readers
    • alt text that states the key message
    • custom accessibility designs

Geospatial Visualization

Would You Use this Projection?

Map Projections

Properties of Projections

  • Properties of projections
    • equivalent (equal-area) — preserve size of area
    • conformal — preserve angles (and thus local shapes)
    • equidistant — preserve distances (from one point or along certain lines)
    • azimuthal — preserve directions (from the center)
    • (gnomonic — preserve shortest route)

Types of Projections

  • cylindrical
  • conic
  • azimuthal
  • polyhedral

Inspirations and Examples

Assignment II

  • Radical makeover - your turn
    1. Find a data visualization which you consider to be a bad example
    2. Create an improved version using the same or similar data
    3. Describe both versions in the Grammar of Graphics (aesthetics, geoms, scales)
    4. Try to add and remove information and complexity to your viz
    5. Reflect on how your viz connects to Tufte’s ideas

Due date: December 4th