Trend lineThe line that fits the dots.

One straight line through the middle of the dots. Its slope says how much one number moves with the other; R squared says how well it fits.

  • Answers Do two things move together?
  • Your data two numbers per item
  • Items about 10 or more
  • Fit least squares
  • Excel and Power BI built in
5060708090051015Hours of studyExam scoreR² 0.95
Study hours and exam score of 15 students (made-up class)

What is a trend line?

In one sentence

Why use a trend line?

How does a trend line work?

What are the parts of a trend line?

How do you read a trend line?

What kinds of trend line are there?

When should you use a trend line?

Trend line or plain scatter?

How do you make a trend line?

What goes wrong with trend lines?

Relationship

Every chart for “Do two things move together?”

  1. Two numbersScatter plotOne dot per item, two numbers as its position.
  2. Two numbersHexbin plotA scatter with too many dots, counted in hexagons.
  3. Two numbersContour plotRings around where dots crowd, like height lines on a map.
  4. Three numbersBubble chartA scatter plot whose dot size is a third number.
  5. Many numbersScatterplot matrixA scatter plot for every pair of numbers, in a grid.
  6. Many numbersCorrelation matrixA grid of how strongly each pair of numbers moves together.
  7. Two categoriesHeat mapA grid where colour shows the value, so patterns jump out.
  8. Two categoriesQuadrant chartA scatter split into four boxes, for sorting items into groups.

Every chart, by its question

From the blog

Read on, step by step.

Every post

Your own numbers

Does it fit your data? Try it.

Paste your table into Chart Compass, say what the chart should show, and see the charts that fit, drawn with your own numbers. It runs in your browser, so the data stays with you.