liveBook · Manning

Categorical data

As explained in Everyday Data Visualization

Data whose values represent categories for which the ordering of values is not inherently meaningful.

Categorical data contains values whose order is not inherently meaningful. It commonly appears in dimensions and contrasts with sequential data, where position or progression matters. section 3.4.2 section 3.4

Recognize categorical values by their role:

  • Use categories for labels such as sales regions, rather than treating their names as ranked quantities. section 2.1.1
  • Do not reorder inherently sequential values—such as funnel steps, pain levels, generations, or survey scales—just to make a chart look tidier. section 3.4.2
  • Use color carefully to distinguish categories or flag a condition, and pair it with another cue because color alone excludes some readers. section 2.1.1

A crosstab that tells a story

A bike-rental crosstab lists average trip duration by hour and weekday. Marking durations of 16 minutes or less in red makes short-trip patterns—especially weekday morning commutes—immediately visible. The color turns a wall of numbers into a readable signal, though a second cue can make it more accessible. section 2.1.1

Figure 2.1 Crosstab showing the average duration of bike rentals in minutes by hour of the day and day of the week. Powered by Transport for London (TfL) Open Data. Contains OS data © Crown copyright and database rights 2016 and Geomni UK Map data © and database rights (2019)
02-01

Inspect the uncolored bike-rental crosstab before comparing it with the highlighted version. section 2.1.1

Figure 2.2 The same crosstab as in figure 2.1, but with the values less than or equal to 16 marked in red
02-02

Compare the same crosstab with values at or below 16 marked in red. section 2.1.1

How Everyday Data Visualization covers it

How deep it goes
Defines categorical values, contrasts their ordering with sequential data, and gives visual encoding guidance without implementation internals.
Examples
Uses sales regions, bike-rental thresholds, fruit data, funnel steps, pain scales, generations, and survey responses as examples.
What you can do after
Evaluate categorical encodings and apply color with an additional visual cue when designing data displays.
How it connects
Connects categorical data to dimensions, measures, sequential data, discrete data, visualization, color, and preattentive attributes.

Also explained in

Compare how 16 books explain categorical data →

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.