liveBook · Manning

Line plot

As explained in Everyday Data Visualization

A chart that connects plotted values with lines to show change or relationships across an ordered dimension.

A line plot connects values across an ordered dimension, making change and relationships visible. It works especially well when the horizontal dimension is continuous, such as time, because the connected marks help viewers perceive the values between labeled points. section 3.4.1 section 3.6

Fruit, seasons, and a badly chosen axis

Fruit types are discrete categories, so connecting their taste scores with a line implies an order that does not exist. A bar chart communicates the comparison more honestly. Plotting taste scores over time, however, could show when fruits reach peak season—provided enough observations exist. section 3.4.1

Use a line plot thoughtfully:

  • Choose it for continuous or meaningfully ordered dimensions, especially time. section 3.4.1 section 3.6
  • Do not connect unrelated categories merely because they can be placed beside one another; the line adds a relationship viewers may interpret as real. section 3.4.1
  • Keep multiple lines from becoming spaghetti; separate them into small multiples or aligned panels when comparison becomes difficult. section 6.4
  • Remove automatic gridlines, labels, and axes that do not support the message, while preserving what users need to understand the data. section 6.4
Figure 3.1 The fruit data shown as a line on the left just doesn’t work because the fruits aren’t continuous, nor could one approximate them as such. On the right, the viz works much better as a bar chart.
03-01

Compare the same fruit data rendered as a misleading line and a clearer bar chart. section 3.4.1

How Everyday Data Visualization covers it

How deep it goes
Explains continuous-data rationale, misleading category connections, multiline alternatives, and decluttering, without implementation details.
Examples
Uses fruit taste scores, seasonal timing, and contrasting line and bar-chart renderings as examples.
What it assumes
Assumes familiarity with dimensions and measures while distinguishing discrete from continuous data through examples.
What you can do after
Evaluate whether a line plot communicates an ordered relationship and simplify it for audience understanding.
How it connects
Connects line plots to continuous data, discrete data, bar charts, Gestalt principles, and small multiples.

Also explained in

Compare how 6 books explain line plot →

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.