Line Charts for Trends Over Time
Show change over time with line charts: when lines beat bars, how to set the axis, handle many series, show seasonality and read growth honestly.
Welcome back!
Step 1 of 11Learn
Lines connect the story
When the question is "how has this changed?", the line chart is usually the answer. A line connects values in time order, so the eye follows the direction, speed and shape of change: steady growth, a sudden drop, a seasonal wave, a plateau.
Line charts shine when you have many time points, such as daily website visits for a year or monthly sales for five years. A bar for each of 365 days would be a wall of bars; a line turns the same data into a readable shape.
Use columns (vertical bars) instead when there are only a few periods and you want to emphasize the individual amounts, for example four quarterly totals, or when values are separate counts for distinct periods rather than a continuous measurement.
Rules of thumb for line charts:
- Time runs left to right, with equal spacing for equal time intervals. If data is missing for a month, leave a gap or mark it rather than silently squeezing the axis.
- Use lines only for ordered data. Connecting categories like "North, South, East, West" with a line implies a progression between them that doesn't exist.
- Keep markers small or remove them when there are many points; use markers when there are few points or when exact values matter.
- Label the time axis at sensible intervals: months, quarters or years, not every single date.
Step 2 of 11Practice · Chart
Monthly website visits: trend and seasonality
Tap the month where the holiday surge peaks.
Tap the point that answers the question, then press Check.
| Item | Visits (thousands) |
|---|---|
| Jan | 42 |
| Feb | 40 |
| Mar | 45 |
| Apr | 47 |
| May | 50 |
| Jun | 48 |
| Jul | 46 |
| Aug | 47 |
| Sep | 53 |
| Oct | 58 |
| Nov | 71 |
| Dec | 80 |
Step 3 of 11Practice · Choose one
Which dataset is best shown as a line chart?
Step 4 of 11Learn
Does a line chart need to start at zero?
Unlike bar charts, line charts don't strictly need a zero baseline. A line encodes value by position, and the reader looks at the shape and slope rather than the area under the line. If a stock price moves between $142 and $158, an axis from $0 to $160 would flatten the movement into an almost straight line, hiding the information people care about.
But the freedom comes with responsibility, because the axis range controls how dramatic a change looks. Zoom in far enough and a 0.5% wobble looks like a cliff. Some guidelines:
- Choose a range that fits the data and the decision. If a 2-point change in an interest rate matters a lot, a narrow range is justified. If it's noise, show more context.
- Include zero when the absolute level matters, for example when readers might compare with zero or when the chart shows counts like unemployed people.
- Label the axis clearly so a non-zero start is obvious.
- Keep scales consistent across charts readers will compare. Two charts of regional sales with different axis ranges invite false comparisons.
When change over time is huge, such as a startup growing from 100 to 1,000,000 users, a logarithmic scale may help. On a log scale, each step up the axis is a multiplication (10, 100, 1,000), so constant percentage growth appears as a straight line. It's powerful for specialists but confusing for many general audiences, so label it explicitly.
Step 5 of 11Chart
A share price, zoomed to its range
| Item | Price |
|---|---|
| Wk 1 | $145 |
| Wk 2 | $148 |
| Wk 3 | $143 |
| Wk 4 | $151 |
| Wk 5 | $155 |
| Wk 6 | $152 |
| Wk 7 | $158 |
| Wk 8 | $156 |
Step 6 of 11Explore
Steady growth looks explosive
This line shows a quantity growing by a constant percentage each year. Notice how the curve bends upward even though the growth rate never changes. That is why log scales, which show constant percentage growth as a straight line, are useful for long periods of compound growth.
- Value after 10 years
- 619
- Value after 20 years
- 3,834
- Approximate years to double (72 ÷ rate)
- 3.6
Step 7 of 11Practice · Work it out
A metric grows at a steady 20% per year from 100. Using the explorer or a calculator, what is its value after 10 years, to the nearest whole number?
Step 8 of 11Learn
Too many lines: spaghetti and small multiples
One or two lines are easy to read. Ten overlapping lines in ten colors, often called a spaghetti chart, are not. The reader bounces between the legend and the lines, the colors start to look alike, and crossings make it impossible to follow any single series.
Fixes, roughly in order of preference:
- Highlight one or two lines. Draw all series in light gray and the one you're discussing in a strong color, labeled directly at the end of the line. Readers see the context and the focus at once.
- Small multiples. Give each series its own small chart, all with the same axes, arranged in a grid. Readers can compare shapes across panels without untangling overlaps. This works brilliantly for things like sales by region or cases by country.
- Aggregate. Combine minor series into "Other," or show the average with a shaded band for the range.
- Let users choose. In an interactive dashboard, allow readers to select which lines to show.
Also watch for seasonality: regular patterns that repeat every year, week or day, such as retail spikes in December or lower traffic on weekends. Comparing December with November will mislead. Compare December with last December, show year-over-year lines, one per year, on the same January-to-December axis, or use a rolling average to smooth weekly or daily noise.
Step 9 of 11Practice · What would you do?
What would you do?
Hana must show monthly sales for 12 stores over three years. Her first draft has 12 colored lines that cross constantly. Leadership mainly wants to know whether the new downtown store is on track. What should she do?
Step 10 of 11Note
Step 11 of 11Practice · True or false
Connecting bars for the categories North, South, East and West with a line is a good way to show regional differences.
Lesson complete!