Data Visualization

Line Chart Examples

A line chart is a small argument about time: it asks us to look from one moment to the next and notice what changed, what held steady, and what may be only a brief interruption. These annotated examples show how intervals, axes, labels, and series shape that argument—and how a seemingly simple line can clarify a pattern or quietly distort it.

At Samples.la, examples are not just things to copy. They are invitations to examine the decisions beneath the surface: what question a chart answers, what it leaves out, and how a reader might interpret what remains.

What a line chart is for

A line chart places measurements in an order—usually time—then connects them so readers can follow movement across that sequence. The horizontal axis carries the order of observations; the vertical axis carries the quantity being measured. The line makes continuity visible. A rise becomes a climb, a fall a descent, and a stretch of little change a plateau.

That visual continuity is useful when the order between observations matters. Monthly rainfall, a river’s daily level, or the changing cost of a household staple all invite a question about movement. A line chart lets a reader see direction and rhythm without having to compare every value separately.

But the line is an interpretation, too. It connects recorded points, not every moment in between. A chart of monthly measurements does not tell us exactly what happened on each day; it suggests a path between the observations. The distinction matters whenever the intervals are long, the data are irregular, or a brief event could have occurred between measurements.

Annotated line chart examples

The examples below use hypothetical figures to make the design choices easy to inspect. Each begins with a question. That question should guide the chart’s construction, rather than being added as an afterthought.

Example 1: Monthly library visits

Question: How did visits change over the course of a year?

Data: One monthly total, from January through December.

Why a line works: The months have a natural sequence, and the interest lies in the overall pattern. A line can make seasonal rises and dips easier to follow than a list of twelve figures.

What to inspect: Are the month labels clear? Are all months represented at equal intervals? If the chart begins in January and ends in December, does the reader understand that the line does not imply data for every day between those points?

Example 2: Two ways of getting to work

Question: Did average commute time change differently for people who drove and people who used public transit?

Data: Monthly average travel time for two groups, measured using the same method.

Why a line works: Two clearly distinguished series can reveal whether the groups moved in similar directions, diverged, or crossed. The comparison is meaningful only if the measurements and time periods are comparable.

What to inspect: Can readers tell which line represents which group without relying on color alone? Are the differences large enough to matter, or merely visible because the vertical axis is tightly cropped? A clear legend and direct labels can help, while too many series can turn the chart into a tangle.

Example 3: A sensor reading through the day

Question: How did a room’s temperature vary during a 24-hour period?

Data: Readings taken at regular intervals, such as every hour.

Why a line works: The measurements are ordered, relatively frequent, and part of a continuous process. The connecting line can help reveal broad rises and falls.

What to inspect: The chart should identify the interval between readings. A smooth-looking line may suggest more certainty than the sensor provides, especially if readings are sparse or noisy. If individual measurements matter, markers can make the observed points visible.

Example 4: A sudden change in a long record

Question: Did a policy change coincide with a shift in an outcome over several years?

Data: Regular measurements before and after a clearly dated event.

Why a line works: A long time series can show the direction of the outcome before and after the event, making a change in pattern easier to notice.

What to inspect: A visible shift does not, by itself, prove that the event caused it. Other changes may have occurred at the same time. Marking the event can provide context, but the chart’s title and accompanying explanation should not claim more than the evidence supports.

The decisions that shape the reading

Intervals and time

Time is not always as regular as a row of evenly spaced labels makes it appear. Daily observations, monthly averages, and annual totals describe different kinds of evidence. If observations are unevenly spaced, placing them at equal distances can mislead readers about how quickly change occurred. Use a time scale that reflects the actual intervals, or explain clearly when the spacing is a simplified display.

Missing periods deserve attention as well. A gap might mean no measurement was collected, a value was unavailable, or the process itself stopped. Connecting across that gap without explanation can make absence look like continuity.

Axes and scale

The vertical axis controls how dramatic movement appears. A narrow range can make modest differences look steep; a wide range can make substantial change appear almost flat. Neither choice is automatically wrong. The important thing is that the scale suits the question and is visible to the reader.

For measurements where zero is a meaningful baseline, showing zero may help readers judge magnitude. In other cases—such as small variations in temperature—a nonzero starting point may reveal useful detail. When the axis does not begin at zero, label the range plainly and avoid presenting visual steepness as evidence of a large absolute change.

Series, labels, and context

Every additional line asks for attention. Include only series that help answer the question, and distinguish them with clear labels, line styles, or direct annotations. Color can help, but it should not carry the whole explanation: line styles and text labels also support readers who cannot distinguish particular colors.

A title should tell readers what is being measured, and the axis labels should supply units. “Temperature” is less useful than “Average daily temperature (°C).” A source note and a short description of how values were calculated can make the chart more trustworthy, especially when averages, estimates, or adjustments are involved.

A brief history of drawing change

Line charts belong to a longer effort to make quantities visible. In the late eighteenth and early nineteenth centuries, statisticians and reformers increasingly used graphs to present economic and social information—not simply as decoration, but as a way to compare values and trace movement. William Playfair’s influential statistical graphics helped establish the line chart as a tool for showing changes in prices, trade, and other measures over time.

The form suited a new appetite for broad comparison. Tables could preserve exact figures, but a chart made a pattern available at a glance. That power carried a responsibility: once numbers became a line, choices about scale, sequence, and selection shaped what the public saw. The same tension remains today, whether a graph appears in a newspaper, a classroom, a scientific paper, or a live dashboard.

Modern screens have made charts faster to produce and easier to update, but they have not made interpretation automatic. A moving line can feel like a direct report from reality. In truth, it is the result of decisions about which observations to collect, how to summarize them, and which parts of the story to place in view.

When a line chart may not be the right choice

If the goal is to compare separate categories without implying a continuous sequence, a line may suggest a relationship that does not exist. A bar chart is often better for comparing categories such as departments, products, or regions. If the data show only a few unrelated measurements, points or a table may be more honest than connecting them.

For a broader introduction to choosing forms and framing data, see Data Visualization Examples. The best chart is not necessarily the most familiar one. It is the one that makes the intended comparison clear without asking the reader to overlook important context.

A reader’s checklist

Before trusting the trend

  • What exactly is measured, and in what units?
  • How often were observations taken?
  • Are the intervals regular, and are any periods missing?
  • Does the axis range make the change look larger or smaller than it is?

Before repeating the conclusion

  • Does the chart show association, or does its caption claim causation?
  • Are multiple lines measured in comparable ways?
  • Is the source identified, and are averages or estimates explained?
  • What relevant context might not appear in the plotted data?

The line is only the beginning

A good line chart makes a sequence easier to see, but it does not relieve us of the work of asking what that sequence means. Read the axes, attend to the intervals, notice what has been omitted, and distinguish a pattern from an explanation. Those habits turn a quick glance into a more careful reading—and make chart examples useful not as templates to copy blindly, but as choices to understand.

Theme