A scatter plot places one dot per observation on two numeric axes to show whether two variables are related. A line graph joins ordered points with a line to show how one value changes across a sequence, usually time. The short answer: use a scatter plot when you want to know if X and Y move together, and use a line graph when the order along the x-axis is the point.
The two charts look alike once someone adds lines to a scatter plot, and that is where most of the confusion starts. What matters is what the line claims. On a line graph, the line says "values exist between these points and they follow in order." On a scatter plot, there is usually no line at all, or one trend line that summarizes the whole cloud. This guide draws the same data both ways, explains the x-axis difference that trips up Excel users, and gives you a short test for choosing. It belongs to our wider data visualization guides, and if you are still comparing other chart families, start with how to choose a chart type.
Scatter Plot vs Line Graph at a Glance
- Scatter plot Two numeric variables, one dot per observation; shows relationship, clusters and outliers
- Line graph Ordered x-axis (time, distance, dose); shows trend, direction and turning points
- Order of rows A scatter plot looks the same if you shuffle the rows; a line graph does not
- Lines A scatter plot gets a trend line at most; a line graph joins every point
- Many points Hundreds of dots still show a pattern; hundreds of joined points turn into noise
- Overlap A connected scatter plot joins dots in time order when both axes are numeric
What Is a Scatter Plot?
A scatter plot, also called a scatter chart, scatter graph or XY plot, shows each observation as a dot. The horizontal position is one numeric variable and the vertical position is another. Atlassian's chart guide describes its main job as showing relationships between two numeric variables, and the shape of the whole cloud tells you more than any single dot (Atlassian).
You read a scatter plot by pattern: direction (up or down), strength (tight or loose), form (straight or curved), plus clusters and outliers. Adding a trend line, also called a line of best fit, summarizes the direction. Our scatter plot guide covers the basics, and how to interpret a scatter plot goes through the patterns one by one. To build one from your own file, use the free scatter plot maker.
What Is a Line Graph?
A line graph, or line chart, plots a point for each observation and joins neighbors with straight segments. The x-axis is ordered: days, months, years, distance along a road, dose. The y-axis holds a numeric measure, and each x value normally has one y value. Because the segments imply that something happens between two points, the chart suits values that change continuously, such as temperature, price or blood pressure.
You read a line graph by slope. A steep segment means fast change, a flat one means stability, and a reversal marks a turning point. The step-by-step guide on how to make a line graph covers the mechanics, and the line graph maker lets you try it on your own numbers.
Key Differences Between a Scatter Plot and a Line Graph
| Feature | Scatter plot | Line graph |
|---|---|---|
| Main job | Show whether two numeric variables are related | Show change across an ordered sequence |
| X-axis | Numeric variable, spaced by value | Ordered values such as dates; often spaced evenly |
| Points joined? | No; a single trend line is optional | Yes, in x order |
| Does row order matter? | No | Yes |
| What the eye reads | Cloud shape, clusters, outliers | Slope and turning points |
| Typical statistics | Correlation, regression | Trend, seasonality, growth rate |
| Many data points | Handles hundreds; overlap can build up | Handles long series if one y per x |
| Typical examples | Height vs weight, ad spend vs leads, study hours vs score | Daily temperature, monthly traffic, stock price |
Microsoft's Excel documentation puts the root difference in one sentence: the two chart types treat the horizontal axis differently (Microsoft Support). The next sections show what that means in practice.
Same Data, Two Charts: What Changes?
Take ten students, recorded in the order they signed up for a tutoring survey: weekly study hours of 4, 1, 7, 2.5, 5, 8, 2, 6, 3 and 4.5, with exam scores of 68, 50, 82, 58, 64, 85, 57, 74, 56 and 70 (hypothetical). Plotted as a scatter plot, the dots rise from lower left to upper right. The correlation coefficient is about 0.97, and the trend line adds roughly 5 points to the score for every extra hour.
Now join the dots in the order the students were recorded. The result is a tangle of lines that jump up and down. Nothing about "student 4, then student 5" means anything, so the zigzag describes the spreadsheet, not the students. Same numbers, but one chart answers the question and the other invents a sequence.
- 0.97Correlation (r)
- ≈5Points per extra hour
- 10Observations
You can check the numbers yourself: paste the two columns into the correlation calculator and the linear regression calculator. For what the coefficient means, see correlation coefficient explained, and remember that a strong pattern does not prove cause (correlation vs causation).
The X-Axis Difference: Category Axis vs Value Axis
In Excel and similar tools, a line chart treats its x labels as categories and spaces them evenly, whatever the labels say. A scatter chart treats x as a true number and places each point at its real position. Microsoft's guidance is that a line chart suits non-numeric x values, while numeric x values are usually better on a scatter chart (Microsoft 365 blog).
Here is why it matters. A cup of hot water is measured at 1, 2, 5 and 10 minutes, giving 90, 78, 60 and 45 °C. The cooling rate is 12 °C per minute between minutes 1 and 2, 6 °C per minute between 2 and 5, and 3 °C per minute between 5 and 10. On a line chart with even spacing, the line looks like a steady decline. On a scatter chart with true spacing, you see the curve flatten as the water cools.
The takeaway: if your x values are numbers with uneven gaps, use a scatter chart with lines (or a date axis), not a plain line chart.
When to Use a Scatter Plot
Pick a scatter plot when most of these are true:
- Both variables are numeric, and you want to know whether they move together.
- Each dot is an independent observation, such as a person, a campaign, a product or a lab sample.
- You want to spot clusters, gaps or outliers that a summary number would hide.
- There are many observations. A few hundred dots still reveal a shape; the same data as a joined line would be unreadable.
- You plan to fit a trend line or run a correlation or regression afterward.
Typical cases: height against weight for 300 patients, advertising spend against leads across 50 campaigns, or age against income. For the outliers you may spot, see how to find outliers, and for a quick grid of many pairs at once, the correlation matrix.
When to Use a Line Graph
Pick a line graph when most of these are true:
- The x-axis has a natural order. Time is the classic case, but distance, depth and dose work too.
- Each x value has one y value, so the line is a function of x.
- You care about direction, speed or turning points, not only the value at each point.
- The measure is continuous, so a value plausibly exists between two observations.
- You want to compare trends. Two to five lines on one chart show which series is rising faster.
Line graphs fit seasonality, forecasts against actuals and KPI tracking, which is why they dominate analysis dashboards. If your x-axis is unordered categories instead, you want bars, and our sibling guide on line graph vs bar chart covers that choice.
Can a Scatter Plot Show Time?
Yes, with a catch. If you put time on the x-axis of a scatter plot, you get dots across a calendar, which is a perfectly valid chart. It just does not guide the eye from one period to the next. Claus Wilke's visualization text notes that a time series is normally drawn as a line graph, while also acknowledging that some people object to the lines because they are not observed data (Fundamentals of Data Visualization).
In the example, sign-ups rise from 210 in January to 390 in December, an 86% increase. Both charts show it, but only the line makes the small dips in April (240 to 232) and August (300 to 290) easy to see. Use dots alone when readings are sparse, irregular or noisy, and use the line when each month leads into the next.
Can a Line Graph Show Correlation?
Only in a loose way. Two lines on one time axis, say ad spend and revenue, can rise together, and readers will see that. But the chart gives no direct view of how strongly one variable depends on the other, and a second y-axis can make unrelated series look linked. To test a relationship, plot one variable against the other on a scatter plot and calculate the correlation. Our post on Pearson vs Spearman correlation helps you pick the right coefficient.
Should You Connect the Dots?
Ask one question: could you shuffle the rows without changing the meaning? If yes, do not connect them. Michel Baudin makes a similar point from the quality-control side: every chart element needs a clear meaning, and a line between unrelated points does not have one (When Not to Connect the Dots). MetricGate frames it as row order: a scatter plot ignores it, a line plot depends on it (MetricGate).
A line is fair when three things hold. The points follow a real order, each x has one y, and the space between points stands for plausible values. If you weigh 50 people, sort by weight and join the dots, you get a tidy curve that suggests a path between people. No such path exists.
Trend Line vs Line Graph
These two get mixed up because both are "a line on a chart." They are different tools:
- A line graph's line passes through every data point in order.
- A trend line, or line of best fit, passes through the middle of a scatter cloud and ignores individual points.
The NC State LabWrite guide draws the same distinction: a scatter plot leaves points unconnected so that a trend can be expressed, and a regression line can then describe that trend statistically (NC State LabWrite). In our study example the trend line is roughly score = 45 + 5 × hours, so a student studying 3 hours is predicted around 60 and one studying 7 hours around 80. Those are predictions, and real students vary around them. If you want to go deeper, read linear regression and how to interpret regression results.
The Overlap: Connected Scatter Plots
A connected scatter plot has numeric values on both axes and joins the dots in time order, so the line traces a path. It is useful when you want to show how two variables moved together over time, for example ad spend and revenue by year. The European Union's data visualisation guide presents it as a way to show the relationship between two time series (data.europa.eu).
Be careful, though. Datawrapper notes that connected scatterplots have plenty of critics, mainly because readers are not used to them (Datawrapper). Label the years, annotate the turning points, and keep it to a modest number of points. When your audience is general, two separate line graphs are often easier to read.
A Quick Decision Checklist
- Name your question. "Are X and Y related?" points to a scatter plot. "How did X change?" points to a line graph.
- Look at the x-axis. If it is an ordered sequence with one y per x, a line graph works. If x is just another measurement, use a scatter plot.
- Do the shuffle test. If reordering the rows would change the chart's meaning, you need order, so use a line. If not, leave the dots alone.
- Count the points. Past a few dozen observations of an unordered pair, a scatter plot is almost always the cleaner choice.
- Check the spacing. Numeric x values with uneven gaps need a value axis, which means scatter (with lines if the order is real).
- Plot both and compare. If one looks like spaghetti and the other shows a clear shape, use the clear one.
Many Data Points and Overplotting
Data volume is a practical tiebreaker. A scatter plot copes with hundreds of observations, but at thousands the dots start to hide each other. Atlassian lists three standard fixes: sample the data, make the dots transparent, or switch to a heatmap (Atlassian). Our heatmap maker handles the last option.
A line graph has the opposite problem. A long, ordered series is fine, but several lines on one chart quickly become unreadable. Keep it to four or five series, highlight the one that matters, or split into small panels.
How to Make Each Chart in Excel, Sheets and Python
Excel. For a scatter chart, select two columns, choose Insert, then Scatter (X, Y) or Bubble Chart. The subtype "Scatter with Straight Lines and Markers" joins the points in the order of your rows, so sort by x first. For a line chart, choose Insert, then Line, and remember that it spaces x labels evenly. To switch, select the chart and use Design, then Change Chart Type. For a trend line, add one from the Chart Elements menu.
Google Sheets. Select the data, choose Insert, then Chart, and change the chart type in the Setup tab of the chart editor to Scatter chart or Line chart. Menu names shift between versions, so check the current interface if yours differs.
Python (matplotlib). Each chart is one function call, and a trend line takes two more:
import numpy as np
import matplotlib.pyplot as plt
hours = [4, 1, 7, 2.5, 5, 8, 2, 6, 3, 4.5]
scores = [68, 50, 82, 58, 64, 85, 57, 74, 56, 70]
months = list(range(1, 13))
signups = [210, 225, 240, 232, 260, 285, 300, 290, 320, 345, 360, 390]
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(10, 4))
ax1.scatter(hours, scores) # scatter plot
slope, intercept = np.polyfit(hours, scores, 1)
xs = np.array([0.5, 8.5])
ax1.plot(xs, slope * xs + intercept, "--") # trend line
ax2.plot(months, signups, marker="o") # line graph
plt.show()
If you would rather not write code, upload a CSV to AmriData's data visualization features or ask questions in plain English with AI data chat. Prepared data helps either way, and the pivot table guide shows a quick way to build monthly totals.
Scatter Plot vs Line Graph in School and Science Labs
Students meet this question in math, science and statistics classes, usually with the word "graph" instead of "plot." In a lab report, a common approach is to look at the independent variable, the one you choose or control. If you set it at steps and measure a response, such as temperature against time, a line graph is typical. If you simply collected pairs of measurements, such as height and arm span for each classmate, a scatter plot fits, and you add a line of best fit. NC State's LabWrite guide notes that line graphs can also be built from an XY scatter type with the connected-line option, which is why textbooks and software sometimes use the names loosely (LabWrite).
To describe a scatter plot in writing, state the two variables, the direction, the strength, the form and any outliers. For example: "As study hours rise, exam scores rise too. The relationship is strong and roughly linear, with no clear outliers." To describe a line graph, name the highest and lowest points, any sharp change, and the unit.
Common Scatter Plot vs Line Graph Mistakes
- Joining unordered points. The zigzag suggests a sequence that does not exist.
- Using a line chart for uneven numeric x values. The category axis spaces them evenly and flattens or steepens real change.
- Drawing a trend line through two obvious groups. One line can hide that the data splits into clusters.
- Reading a trend line as cause and effect. A strong fit shows association only.
- Ignoring overplotting. Thousands of dots become a solid blob; sample, use transparency or switch to a heatmap.
- Too many lines. Past four or five, a line graph turns into spaghetti.
- Extending a trend line far outside the data. The fit says nothing about values you never measured.
- Choosing by habit. Ask what the reader should conclude, then pick the chart that makes it easiest.
More traps like these are listed in common data visualization mistakes.
Practice Questions With Answers
1. Height and weight for 200 adults. Which chart?
Scatter plot. Both variables are numeric, each adult is independent, and the goal is to see the relationship.
2. Monthly website visits for three years. Which chart?
Line graph. Months are ordered, and the trend and seasonality are the point.
3. Advertising spend and leads for 40 campaigns. Which chart?
Scatter plot, with a trend line. The campaigns have no order.
4. Water temperature measured at 1, 2, 5 and 10 minutes. Which chart?
Scatter chart with lines. The numeric gaps are uneven, so a value axis keeps the true spacing, and the order is real.
5. Test scores for students listed alphabetically, plotted against hours studied. Should you join the points?
No. Alphabetical order has nothing to do with the data. Use a scatter plot.
6. Ad spend and revenue by year, and you want to show how they moved together. Which chart?
Connected scatter plot with year labels, or two line graphs if your audience is new to the format.
Try Both Charts on Your Own Data
The quickest way to settle the choice is to look at both. Paste your numbers into the scatter plot maker and the line graph maker, then ask which one answers your question faster. Related tools: correlation calculator for the strength of a relationship, linear regression calculator for the trend line equation, outlier calculator for suspicious dots, and descriptive statistics calculator for a quick summary of each column.
Frequently Asked Questions About Scatter Plots and Line Graphs
What is the difference between a scatter plot and a line graph?
A scatter plot shows individual observations of two numeric variables to reveal a relationship. A line graph joins ordered points to show change, usually over time. One shows association, the other shows trend.
When should I use a scatter plot instead of a line graph?
Use a scatter plot when both variables are numeric, each point is an independent observation and you want to see correlation, clusters or outliers.
Which is better for time series data?
A line graph is the usual default because the order of time matters and the line shows direction and turning points. Dots alone suit sparse or irregular readings.
Can a scatter plot have a line?
Yes. A trend line summarizes the whole cloud, and "scatter with straight lines" joins points in row order. Only join them if the order is real.
Can a line graph show correlation?
Loosely. Two lines can rise together, but a scatter plot of one variable against the other is the proper way to inspect a relationship and calculate a correlation.
Is a scatter plot the same as a scatter graph or XY plot?
Yes. Scatter plot, scatter graph, scatter chart, scattergram and XY plot are different names for the same chart.
What is a line of best fit?
It is a straight line through the middle of a scatter plot that summarizes the overall trend. It does not pass through each point. See our linear regression guide for how it is calculated.
Should I connect the dots on a scatter plot?
Only when the points follow a real order, such as time, and each step leads to the next. If you could shuffle the rows without changing the meaning, do not connect them.
What is a connected scatter plot?
It is a scatter plot with numeric values on both axes where points are joined in time order, tracing a path. It works best with labels and a small number of points.
Why does my Excel line chart space my numbers evenly?
Excel's line chart uses a category axis, so it spaces x labels at equal intervals. Switch to a scatter chart with lines, or use a date axis, to place points at their true positions.
Which chart should students use in a science report?
Use a line graph when you control a numeric independent variable in steps and measure a response. Use a scatter plot with a line of best fit when you collect pairs of measurements. Follow your teacher's rubric if it differs.
How many points are too many for a line graph?
The number of points matters less than the number of lines. A single long series is fine. Past four or five series on one chart, split it into panels or highlight one.
Key Takeaways
- Scatter plots show relationships; line graphs show change over an ordered sequence. Decide which question you are answering.
- If shuffling the rows would not change the meaning, do not join the dots.
- A trend line summarizes a cloud; a line graph's line passes through every point.
- Numeric x values with uneven gaps belong on a value axis, which is a scatter chart.
- Connected scatter plots overlap both types but need labels to be readable.
- When unsure, plot both and keep the one that makes your point faster.
Bottom line: The right chart is the one that lets a reader reach the correct conclusion without help. For more chart guidance, browse the full data visualization category.
Further Reading and Sources
- Microsoft Support — Present your data in a scatter chart or a line chart: how the two chart types treat the horizontal axis.
- Microsoft 365 Blog — Line or scatter chart?: when numeric x values call for a scatter chart.
- Atlassian — A complete guide to scatter plots: uses, trend lines and overplotting fixes.
- NC State LabWrite — Line graphs: scatter plots, trend and regression lines in lab reports.
- NC State LabWrite — Graphing resources: line graphs built from XY scatter.
- Claus Wilke — Visualizing time series: line graphs and the objection to drawing lines between observations.
- Michel Baudin — When Not to Connect the Dots: why a line needs a clear meaning.
- MetricGate — Scatter Plot vs Line Plot: When to Use Which: row order as the deciding factor.
- data.europa.eu — Connected scatter plots: relating two time series.
- Datawrapper — Are connected scatterplots so bad?: readability criticisms and annotation advice.