Joining two points with a line is a claim. It says the values in between exist, and that they ran roughly along the line. That claim is true for some axes and false for others.
Ordered and unordered
- Ordered fields have a natural sequence: dates, months, ages, sizes, steps in a process, Low to High. Between January and March there really is a February. Between age 30 and age 40 there really are ages 31 to 39.
- Unordered fields are just names: products, regions, departments, colors. Between Engineering and Sales there's nothing. Any order you put them in (alphabetical, by size) is a choice, not a fact.
A line needs an ordered axis because it fills in the space between points. On an unordered axis, that space means nothing, and the slope from one category to the next shows a "change" that never happened.
Lines for order, bars for names
- Revenue by month: a line. The months are ordered, and the line's ups and downs are real changes over time.
- Revenue by region: bars. Sort them by size so the ranking reads at a glance; the order is yours to choose.
- Revenue by age band: either. The bands are ordered, so a line can show the trend, but each band is also a separate group, so bars work too.
Sorting is the bars' superpower. Because a category has no fixed order, you can put it in whatever order helps the reader most, usually largest first. A line can't be re-sorted without lying about time.
Not every ordered value changes smoothly
Some ordered values change in steps, not slopes: a price that holds until it's changed, a count of active customers that drops when one leaves. A line from one value to the next suggests a gradual change that didn't happen. A step plot holds each value flat until the next one, which is what really happened.
A worked example
Take a table of monthly signups: one row per month for 30 months, with the month's signups and its target. The months come in order, so a line through them reads naturally: time runs left to right, and the line's direction is the story.

Take away the order and the line loses its meaning. Turn the months into labels that have no order, and see what the product makes of the same numbers:
Loading the interactive...
Steps are the other fair reading. A table of customers, put in the order they started, holds each customer's monthly fee until the next customer starts. A step plot shows exactly that: each value holds until the next one arrives.

Both are fair readings of an ordered field. The step plot is more literal about when a value changes; the line is easier on the eye over a long period. What would be wrong is a line through the customers' plans or regions, which have no order at all.
Order you should keep
Some categories have an order that a chart should keep even though they're labels: Low, Medium, High; Small, Medium, Large; the steps of a sales pipeline. Sort those by their own order, not alphabetically ("High, Low, Medium" helps no one) and not by size, because the reader expects the sequence.
Try it
Look at the axis of a line chart you use. Ask: is there something real between two neighboring points? If not, redraw it as sorted bars. Then find one chart sorted alphabetically and ask whether size or a natural order would serve the reader better.
The next lesson covers the last common failure: a map that can't find its places.