liveBook · Manning

Code readability

As explained in Everyday Data Visualization

Readability is the ease with which written characters, words, and passages can be visually recognized and understood.

Here, readability means making the text in a data visualization easy to see and understand—not making its source code easier to read. Labels, annotations, and captions should help people follow the data story without becoming the main attraction. If the type is too faint, crowded, tiny, or fancy, it gets in the way. section 5.2 section 5.2.1

Start with the small text, where font choices have the least room for error:

  • Choose a regular weight for most labels. Very thin letters can disappear; very heavy ones leave too little white space. Save extremes for larger titles and use heavier small text only where emphasis helps. section 5.2.1
  • Inspect letter shapes, not just the font name. Generous x-height, rounded counters—the spaces inside letters—and clearly different forms of lowercase l, uppercase I, and the numeral 1 can make small text easier to distinguish. section 5.2.1 section 5.6
  • Begin with one font, size, and color. Add contrast only if it serves a purpose: a bolder title or a smaller annotation may be enough. Your chart does not need the typographic variety of a pizza box. section 5.2.3
  • Give longer passages room to breathe. Shorter lines and adequate line, paragraph, letter, and word spacing help readers keep their place; forced justification can create distracting gaps. section 5.5.1 section 5.5.2

A small change that earns its place

A chart can use one font at one size and still look clean and business-like. Bold its title only if the added emphasis helps. In a dashboard tooltip, slightly larger text can improve readability, while a heavier weight picks out only what needs attention. section 5.2.3 section 8.4.3

Figure 5.11 In our three top contenders, how easy is it to distinguish these three oft-confused characters?
05-11

Compare easily confused characters in candidate fonts. At label size, a stylish letter is less useful if readers cannot tell it from a number. section 5.2.1

How Everyday Data Visualization covers it

How deep it goes
Works through font weight, letter shapes, font count, and spacing guidance rather than prescribing one universally readable font.
Examples
Compares thin and heavy Shakespeare paragraphs and adjusts font size and emphasis in dashboard tooltips.
What it assumes
Introduces basic typography vocabulary before applying readability checks, without requiring specialist design terminology.
What you can do after
Evaluate/understand it by checking small-text weight, letter distinction, spacing, and whether emphasis helps readers find information.
How it connects
Connects typography with visual hierarchy, white space, accessibility, and dyslexia.

Also explained in

Compare how 12 books explain code readability →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Everyday Data Visualization. The section links point to the parts of the book it draws on.