We read a chart through the eyes and the brain. Knowing how people perceive marks tells us which encodings to use.
Visual Encodings
A chart maps data to visual channels: position (along a scale), length, angle, area, colour hue and colour intensity, shape and slope. Different channels carry different kinds of data accurately.
Accuracy of Perception
Cleveland and McGill tested how accurately people judge each channel. From most accurate to least: position along a common scale, position along non-aligned scales, length, angle and slope, area, and finally volume and colour shade. This is why bar charts and dot plots, which use position and length, are better for comparing values than pie charts (angle and area) or bubble charts. When precise comparison matters, use position or length.
Pre-Attentive Attributes
Some features are noticed in less than a quarter of a second, before conscious attention: colour, size, orientation, position, shape, enclosure and motion. A single red mark in a grey field "pops out" at once. Designers use these attributes to direct attention to the key data point, and must not overuse them.
Gestalt Principles
The Gestalt psychologists described how people group elements into wholes.
- Proximity: items close together are seen as a group.
- Similarity: items with the same colour or shape belong together.
- Enclosure: items inside a boundary or shaded box form a group.
- Closure: the mind fills in gaps to see complete shapes.
- Continuity: the eye follows smooth lines and curves.
- Connection: items joined by a line are seen as related.
Using these principles, a designer can group related charts by space, shade or box, and avoid clutter.
Definition: Pre-attentive attribute. A visual property, such as colour, size or orientation, that the brain detects almost instantly and without conscious effort, so it can be used to draw attention.
Table 4.2: Accuracy of visual channels
| Rank | Channel | Example chart |
|---|---|---|
| 1 | Position on a common scale | Dot plot, bar chart baseline |
| 2 | Position on non-aligned scales | Small multiples |
| 3 | Length | Bar length |
| 4 | Angle and slope | Pie slice, line slope |
| 5 | Area | Bubble size |
| 6 | Colour shade, volume | Heat map, 3D chart |
Example 4.2: Pie angles and bar lengths
Problem: Four categories have shares 40, 30, 20 and 10 percent. Find the pie-slice angles and the bar lengths on a scale of 10 cm for 100 percent, and explain which is easier to compare.
Solution:
- Pie angles: 40 percent of 360 degrees = 144, 30 percent = 108, 20 percent = 72 and 10 percent = 36 degrees.
- Bar lengths on 10 cm per 100 percent: 4, 3, 2 and 1 cm.
- Judging 144 against 108 degrees needs angle comparison, which is hard, especially when slices are not aligned.
- Judging bars of 4 and 3 cm uses length from a common baseline, which is more accurate.
Result: Angles 144, 108, 72, 36 degrees; bars 4, 3, 2, 1 cm. The bars are easier to compare.
shares = {"A": 40, "B": 30, "C": 20, "D": 10}
for name, pct in shares.items():
angle = pct / 100 * 360
bar = pct / 100 * 10
print(name, f"angle {angle:.0f} deg", f"bar {bar:.0f} cm")
print("Total angle:", sum(p / 100 * 360 for p in shares.values()))
Output
A angle 144 deg bar 4 cm
B angle 108 deg bar 3 cm
C angle 72 deg bar 2 cm
D angle 36 deg bar 1 cm
Total angle: 360.0
Common mistakes
- Using bubble size or colour shade when readers must compare values precisely.
- Using a pie chart with similar slices and expecting accurate reading.
- Using several pre-attentive attributes at once so that nothing pops out.
- Ignoring grouping: unrelated items placed together look related.
Key takeaways
- Most accurate: position, then length; least: area and colour shade.
- Pre-attentive attributes (colour, size, orientation) direct attention.
- Gestalt: proximity, similarity, enclosure, closure, continuity, connection.
- Use bars or dots for precise comparison.
Practice questions
- Which channel is judged most accurately?
- Name two Gestalt principles.
- What is a pre-attentive attribute?
Answers to the practice questions
- Position along a common scale.
- Proximity and similarity (also enclosure, closure, continuity, connection).
- A visual property such as colour that is noticed almost instantly.
Sources
- Official BCA syllabus Data Visualization, course code 26BCA404DSE11, Unit IV
