What is a Line Graph? — Definition & Examples
What is a grid?
The grid that forms the foundation for a line graph has two axes: the x-axis running horizontally and the y-axis running vertically. These two axes need not be in the same scale, meaning their increments need not match. This is because the x-axis represents one category of information related to time, like years, months, days, or hours. The y-axis represents a set of numbers we are examining over that span of time.
| Grid Feature | Description |
|---|---|
| X-axis | Runs horizontally; represents units of time (years, months, days, hours) |
| Y-axis | Runs vertically; represents the numerical values being tracked |
| Scale | Axes can use different scales; increments need not match |
| Grid shapes | Precise squares, tall narrow rectangles, or wide short rectangles |
The word "graph" comes from Greek, meaning "writing," as with words like autograph and polygraph. A line graph uses a grid of intersecting perpendicular lines formed by an x-axis and a y-axis, over which you show changes over time using a line. The most important feature setting a line graph apart from, say, a bar chart is the graphical way it shows the passage of time.
The grid can be shaped in three ways: precise, tiny squares; tall, narrow rectangles; or wide, short rectangles. Sometimes line graphs deliberately exaggerate one axis to emphasize the information.
Here are two line graphs of the same information, but in the second one, we have doubled the height of the vertical increments and halved the width of the horizontal increments, making the information look much different:

The second graph would make many people very nervous that the prices being tracked are out of control, rising and falling dramatically. Yet the two graphs show the same information.
What is a line graph?
A line graph is a visual representation of a single piece of information tracked over time. You can see line graphs with multiple lines, but each line tracks one idea and moves through time from earlier (on the left) to more current (on the right).
| Line Graph Component | Purpose |
|---|---|
| Title | Centered at the top; explains what the two axes are showing |
| Y-axis label | Printed sideways along the y-axis; describes the quantity measured |
| X-axis label | Written horizontally below the axis; identifies the unit of time |
| Y-axis increments | Determined by the range of data values |
| X-axis increments | Determined by the range of time (years, months, weeks, days) |
| Key (legend) | Explains what each line represents |
A line graph has a title, nearly always centered at the top and above the graph. The title explains what the two axes are showing: "Gold Prices Per Ounce 2004-2026," or "Hank Aaron's Career Home Runs Per Season," or "2026 Temperatures in Tempe, AZ."
A line graph also has axis labels, with the y-axis label usually printed sideways and running along the y-axis. This will be the quantity, like "Price in Dollars," "Number of Home Runs," or "Temperature in ℃."
The x-axis label is a unit of time written horizontally under the numbers, ranging from centuries to seconds as you need. In our three examples, the x-axis might be labelled "Year" for the first two graphs, and "Weeks" or "Months" for the last one.
Increments for the y-axis are determined by the range of data. If gold prices from 2004 to 2026 varied from a low of $375 (in 2004) to a high of $2,790 (in 2024), we do not need to start at $0 and climb by $10 increments. The graph would be absurdly tall. We could start at $300 and move up by $200 increments, ending at $3,000.
Increments for the x-axis are determined by the range of time, with common units of years, months, weeks, and days.
A key tells what the changing line shows, like "Price," "Home Runs," or "Temperature."
Example of a line graph
Data displayed by a line on a line graph is ideal for spotting trends, noting consistent performance, or tracking progress. You could make your own line graph of mathematics quiz grades over a term. Your x-axis would be days or weeks, and your y-axis would be your grades.
| Step | Action |
|---|---|
| 1 | Give your line graph a title |
| 2 | Use subtraction to find the range of your data so the y-axis does not waste white space |
| 3 | Determine increments for both axes (e.g., 5 or 10 percentage points; weeks) |
| 4 | Label both axes |
| 5 | Chart data points at each intersection of x-axis and y-axis values |
| 6 | Write in a key explaining your line |
Give your line graph a title.
Use subtraction to find the range of your data, so your y-axis does not waste white space with grades from 0% to 50%, but instead starts at a grade just below your lowest grade.
Determine the increments for your two axes, like five or 10 percentage points on the y-axis and weeks on the x-axis.
Label both axes.
Chart your data points at each intersection of the x-axis and y-axis.
Write in a key explaining your line.
Here is a sample line graph for Sally Peprally:

Sally charted her progress to help her decide if she should enroll in the next higher mathematics class for the following term. She can look at the line graph and get answers to questions that range from simple to complex. See if you can answer them:
What is displayed?
Which way is the line trending?
Which two weeks were the same?
Does the line graph indicate any problems?
Should Sally Peprally attempt the next higher mathematics class?
Did you get these answers?
Sally's mathematics quiz grades are displayed.
The line is trending upwards.
Week 2 and Week 5 had the same grade.
The line graph showed Sally's difficulty in Week 5.
Sally should consider the next mathematics class, because she is steadily improving.
Lesson summary
Now that you have worked through the entire lesson, you can recall and state the definition of a line graph, identify the features of a line graph (including the x-axis, y-axis, titles, labels, and line for discrete data points), construct your own line graph, and interpret results recorded on an existing line graph. Line graphs remain one of the most widely used tools in data visualization, from classroom exercises to professional data analysis in 2026.