… the actor has two or more items designated by selection or by the system—versions of one item in change review, reconciliation, or version history, or instances and subsets while making sense at scale. Here they need to see what differs between them.
Problem
When two things are shown in full and the comparison is left to the actor, the actor looks back and forth and keeps one in memory while reading the other. They find the differences they were already looking for and miss most of the others. A difference they do find is easily lost once their attention moves on.
There are three ways to show a difference, and they can be combined. Juxtaposition places the things side by side, aligned so that matching parts sit level with each other. It is the cheapest to build, but the actor still has to carry each difference from one side to the other. Superposition overlays the things in one space, so a difference shows as an offset. It works only when the things share a layout or a set of axes. Explicit encoding computes the difference and draws it directly, as a diff, a change column or a highlighted region. It asks the least of the actor and depends most on the system deciding what counts as a change. Studies of chart arrangements find that the choice changes how accurately people compare, and that no single arrangement is best for every task.
Versions of one thing and instances of a kind need different preparation. Versions share their structure, so a version diff can assume that structure and show only what changed. Instances first have to be lined up on the attributes they have in common. People notice differences along shared attributes much more readily than differences that have no counterpart on the other side, so a comparison table with consistent rows does much of the work before any difference is highlighted. Such tables work best with a handful of items. A larger set needs narrowing, summarising or stepping through before a direct comparison helps.
Every comparison also runs on bases someone chose: which attributes, at what level of detail, and what counts as the same. A difference along a basis that was left out cannot appear. That choice is the main cost of the pattern.
Solution
Give the difference a representation of its own. Show the compared things in one view, aligned on what they share. Keep shared parts quiet and draw each difference so that it is visible and its size can be read. Where the things are instances rather than versions, align them on their common attributes first. Show which bases the comparison uses, and let the actor add one where the set allows.
A stronger encoding hides more of what it was not set up to show. A diff that highlights changed lines says nothing about a change in meaning that left the text untouched. Offer the comparison when the actor asks for it, and leave it out where the questions are about the items themselves rather than the differences between them.
Continuation
Where one version is a proposed change to existing work, build change review on the version case and add part-by-part acceptance. Where the versions are two actors' divergent work on the same item, build reconciliation on it so a person picks between them. Use the same version case in version history to show a past state beside the current one before restoring it. Keep selection lightweight so the actor can pick or swap which items enter the comparison…
All connections
- Enables
- Change review — Where one version is a proposed change to existing work, build change review on the version case and add part-by-part acceptance.
- Reconciliation — Where the versions are two actors' divergent work on the same item, build reconciliation on it so a person picks between them.
- Version history — Use the same version case in version history to show a past state beside the current one before restoring it.
- Complements
- Branching — “Where the actor needs to weigh what diverged across sibling branches, align their outputs or paths with comparing.”
- Regeneration — “When the actor draws several candidates at once, align them through comparing so differences can be read directly rather than held in memory.”
- Enabled by
- Selection — Keep selection lightweight so the actor can pick or swap which items enter the comparison
- Hosted by
- Contextual actions — “On selected text or blocks, host prestructured formatting, commenting, and instructed revision directly on the floating toolbar; on selected items or rows, host tag assignment, deletion, and, when two or more items are selected, comparing.”
Resources & references
- Gleicher (2018) Considerations for visualizing comparison: the juxtaposition, superposition and explicit-encoding families, what makes a comparison hard (many items, large items, complex relationships), and the ways of coping with each
- Ondov, Jardine, Elmqvist & Franconeri (2019) Face to face: evaluating visual comparison: how side-by-side, mirrored, overlaid and animated arrangements change what people can compare accurately
- Gentner & Markman (1994) Structural alignment in comparison: no difference without similarity: differences along shared structure are noticed far more readily than differences outside it, which is why instances need aligning first
- Burghardt (2009) Working Through Screens, F5 “Comparative representations”: comparison as manual juxtaposition in unsupported practice, and the case for purpose-built comparative displays
- Nielsen Norman Group, Comparison tables for products, services, and features: the everyday instance case, with offerings aligned on shared attributes