Data visualization

Designing & Evaluating
Visualizations

Rules of thumb for good design, and how to test whether a design works.

“There are no hard rules… but there are some things that work better than others.”Moritz Stefaner
Part I

Design rules of thumb

01

Choose dimensions deliberately

Add a dimension only when it carries data.

No unjustified 3D

Decoration, not data.
Decoration, not data.
Near bars hide far ones.
Near bars hide far ones.
One viewpoint: we see only the outside shell of the world.
One viewpoint: we see only the outside shell of the world.

The fix

Facet & juxtapose. Side-by-side 2D panels keep every value visible.

3D tangle (top) versus aligned 2D facets (bottom).
3D tangle (top) versus aligned 2D facets (bottom).

…unless the data is truly 3D

Airframe stress: shape is the task.
Airframe stress: shape is the task.

When the task is shape perception of spatial data, 3D wins, especially with interactive navigation.

No unjustified 2D

Grid of squares…
Grid of squares…
…or just the number.
…or just the number.

Use the simplest form that carries the message.

02

Respect human limits

Keep text readable. Let eyes do the remembering.

Tilted labels are far harder to read.
Tilted labels are far harder to read.

Keep text facing the viewer

Legibility drops sharply when text tilts away from the image plane.

Easy

Compare side-by-side views by moving your eyes.

Hard

Compare what you see now to what you remember.

Animation works for
two states and storytelling
→
Many changes at once?
Use small multiples

Change blindness: big changes go unnoticed when not seen side by side.

03

Support exploration

Shneiderman’s mantra: overview first, zoom and filter, then details on demand.

1OverviewSee the whole collection
2ZoomFocus on items of interest
3FilterDrop what is uninteresting
4DetailsOn demand
5RelateSee relationships
6HistoryUndo, replay, refine
7ExtractSave sub-collections

Function first, form next

1 · Get the function right
→
2 · Then refine the form

Aesthetics can be added later. Function usually can’t. Visual hierarchy, alignment, and flow still matter.

04

Make comparison easy

Most charts exist so people can compare things.

c13_7.png

Wide contrast

Narrow color scales wash out patterns.

c14_4.png

Add guides

Reference lines make positions quick to compare.

c15_6.png

Length over area

Small differences are easier to see in length.

05

Guide the eye, tell the story

Emphasize what matters. Mute the rest. Explain it.

c17_5.png

Default

Everything has equal weight.

c19_5.png

Emphasize

Bold data, soft background.

c21_5.jpg

Annotate

Say what the picture shows.

Annotation turns a chart into a story.
Annotation turns a chart into a story.
  • Context gives scale and ties shapes to the real world.
  • Labels make a chart self-documenting: title, axes, legend, readable numbers.
  • Arrows & lines direct attention.
Unlabeled graphs leave readers guessing (xkcd #833).
Unlabeled graphs leave readers guessing (xkcd #833).

06

Use color with care

Get it right in black and white first.

Sequential

One hue, varying lightness. One metric.

Diverging

Two hues around a midpoint.

Qualitative

Distinct hues for categories.

Three kinds of color scale.
Three kinds of color scale.

07

Respect negative space

Clutter is the enemy of readability.

Give data room to breathe.
Give data room to breathe.

Empty space groups items, rests the eye, and lets the important parts stand out. When a plot is unreadable, remove or aggregate before adding more.

08

Tufte’s principles

Five commitments.

1

Above all else, show the data

2

Maximize the data-ink ratio

3

Erase chartjunk

4

Erase redundant ink

5

Revise and edit

09

Four layout principles

From Robin Williams’s The Non-Designer’s Design Book.

Contrast

If elements differ, make them very different.

Repetition

Repeat color, shape, and spacing to build unity.

Alignment

Nothing placed arbitrarily. Every element connects to another.

Proximity

Group related items so they read as one unit.

Part II

Validation & evaluation

Rules get you a first design. Evaluation tells you if it works.

10

Why evaluate, and why it’s hard

Does the design help people make sense of data?

Evaluation closes the design loop.
Evaluation closes the design loop.

What you get

  • A judgment of utility
  • Ways to improve
  • Comparison of techniques
  • Design implications
  • New research questions

What makes it hard

FocusRight questions, right methods
SensitivitySmall errors have big effects
ParticipantsBackgrounds matter
TasksOften open-ended
Time spanMay take weeks or months
CognitionInsight is hard to measure
Aims
→
Approach
→
Practicalities
→
Carry out
→
Results
→
Discussion

11

Choosing a method

Every method trades off three things.

No method maximizes all three (after McGrath, 1995).
No method maximizes all three (after McGrath, 1995).
GeneralizabilityTransfers to other people and contexts
AccuracyPrecisely recorded, isolated from other factors
RealismMatches a real situation

When?

Formative informs a new design.
Summative judges an existing one.

What to measure?

Quantitative: time, errors, activity.
Qualitative: attitudes, opinions, emotions.

Empirical methods (with people)

Lab study

Controlled test of one aspect.

Precise, but artificial

Think aloud

Users narrate as they work.

Captures intent, less realistic

Interviews

Open questions, no leading.

Surprising insights, hard to compare

Field study

Watch in a real setting.

Realistic, but costly

Web prototype

Deploy and log usage.

Semi-realistic, effort to build

Analytical methods (with experts)

Heuristic evaluation

3–10 experts review against known principles. Cheap and early; doesn’t generate new ideas.

Cognitive walkthrough

Step through the actions a persona needs to finish a task.

Heuristics come from Nielsen (usability) · Mackinlay (expressiveness, effectiveness) · Shneiderman (the mantra) · Amar & Stasko (tasks) · Zuk et al. (visual heuristics)

12

Evaluate at every level

Munzner’s nested model: errors cascade inward.

Four nested levels.
Four nested levels.
  1. DomainWho are the users? What are their tasks?
  2. AbstractionTranslate data and tasks into visualization terms.
  3. IdiomWhat is shown, and how can it change?
  4. AlgorithmCan it be computed efficiently?
Validation methods at each level.
Validation methods at each level.

Putting it together

Early concept

Heuristic evaluation · walkthrough · interviews

Working prototype

Think aloud · lab studies · web logging

Released

Field studies · usage analysis · summative comparison

Design with principles. Test with people. Validate at every level.