Visual Encoding and Design Principles
Every chart maps data to a visual property — position, length, color, size. Some mappings are read far more accurately than others. This reading covers how to choose well.
How Visual Encoding Works
A chart is a set of rules mapping data values to visual properties: a bar's height encodes a number, a point's horizontal position encodes a date, a shape's color encodes a category. This mapping is called visual encoding, and the choice of encoding determines how accurately — and how quickly — a viewer can extract the actual values behind the picture. The same numbers encoded as bar length versus encoded as circle area can leave a viewer with very different, and differently accurate, impressions of the underlying data.
Good encoding choices aren't about aesthetics first — they're about matching the visual channel to how precisely a human eye can actually decode it. Some channels are read with near-perfect accuracy; others are consistently misjudged, even by experienced analysts.
The Hierarchy of Perceptual Accuracy
Research on graphical perception ranks visual channels by how accurately people can compare values encoded in them, from most to least accurate: position along a common scale (points on a shared axis) is read most accurately, followed by length (bar height), then angle and slope, then area, then volume, and finally color and saturation, which people are worst at translating into precise quantitative differences.
This is why a bar chart (length, and often position) reliably outperforms a pie chart (angle) or a bubble chart (area) for precise comparison — it isn't a stylistic preference, it's a difference in how accurately the human visual system decodes each channel. When precision matters — comparing two categories that are close in value — favor charts built on position and length. When you only need to convey a rough sense of magnitude, area and color become acceptable.
Color as Information, Not Decoration
Color should carry meaning, not just make a chart look finished. Use a categorical palette (distinct hues) when color represents unordered categories. Use a sequential palette (one hue, increasing intensity) when color represents a low-to-high numeric value. Use a diverging palette (two hues meeting at a neutral midpoint) when color represents movement away from a meaningful center point, like zero or a target.
Limit a categorical palette to the number of colors a viewer can actually keep straight — beyond seven or eight distinct hues, most people lose track of which color means what, and a legend stops helping. Reserve a strong, saturated color for the one data point you want to draw attention to, and keep everything else muted; when everything is emphasized, nothing is.
Reducing Chart Junk
Every gridline, border, background fill, and 3D effect competes for attention with the data itself. Chart junk is any visual element that doesn't help a viewer read the data more accurately — heavy borders, redundant gridlines, decorative textures, drop shadows on bars. The test for any element on a chart is simple: if removing it doesn't reduce how well the chart communicates, remove it.
This doesn't mean every chart should be stripped to bare minimalism. Labels, a clear title, and axis units are not chart junk — they're what makes a chart interpretable without a caption. The goal is removing decoration, not removing context.
Practical Review Checklist
Before moving on, confirm that you can:
- List the perceptual accuracy hierarchy from most to least accurate
- Explain why bar charts typically communicate more precisely than pie charts
- Choose between a categorical, sequential, and diverging color palette for a given dataset
- Identify at least three examples of chart junk
- Distinguish decoration that should be removed from context that should stay
Conclusion
Visual encoding is the hidden mechanics behind every chart. Choosing the channel — position, length, color — that matches how accurately people can actually read it is what separates a chart that informs from one that merely decorates.