# Line Chart

**Category:** charts  
**Short Description:** A visualization that displays data points connected by straight lines to show trends and patterns over a continuous interval.  
**Last Updated:** 2026-05-30T00:00:00Z

## Definition

A line chart is a fundamental data visualization that displays data points connected by straight line segments, primarily used to show trends, patterns, and relationships over a continuous interval like time. The chart plots data points on a coordinate system where typically the x-axis represents the independent variable (often time) and the y-axis represents the dependent variable, with points connected in sequence to form a continuous line. Line charts excel at showing rate of change, direction, and patterns in continuous data.

## Examples

- Monthly revenue performance against target, showing both actual results and goals over a six-month period with clear trend visualization
- Daily temperature and humidity fluctuations showing inverse relationship between the two metrics throughout the day

## FAQs

### What is a line chart?

A line chart displays data points connected by straight line segments, plotted against a continuous axis — almost always time. It's the default choice for showing how a metric moves: revenue by month, click-through rate by week, sessions by day. The slope of the line communicates the rate and direction of change at a glance, which is why line charts are the workhorse of trend reporting.

### When should I use a line chart instead of a bar chart?

Use a line chart when the x-axis is continuous and you care about the trend or rate of change over time. Use a bar chart when you're comparing discrete categories or a small number of distinct periods. The connecting line in a line chart implies continuity between points, so it's wrong for unordered categories — there's nothing 'between' two product names, but there is something between Monday and Tuesday.

### How many lines can I put on one chart?

Keep it to about 4–5 series before it becomes a tangle (often called spaghetti). If you need more, use small multiples (a grid of mini line charts sharing the same axes), highlight one or two key series and gray out the rest, or let the reader toggle series interactively. Distinct colors and direct labels at the end of each line beat a crowded legend.

### Line chart vs area chart — what's the difference?

A line chart shows only the line, emphasizing direction and rate of change and making it easy to compare several series. An area chart fills the space beneath the line to emphasize volume or cumulative magnitude. Use a line chart when you're comparing trends and need to read values precisely; use an area chart when the size of the quantity beneath the line is part of the story.

### Why does my line chart look misleading?

Usually the y-axis. Truncating the axis (not starting at zero) exaggerates small changes, while an over-wide range flattens real movement. Inconsistent time intervals on the x-axis also distort the slope. Start the axis at zero unless there's a clear reason not to, keep intervals even, and avoid smoothing that invents data between points.

## Related Terms

### Variants

- **[Area Chart](/resources/glossary/charts/area-chart)**: Line chart with filled area below the line to emphasize magnitude of values
- **[Sparkline](/resources/glossary/charts/sparkline)**: Simplified, small line chart without axes or coordinates

## Featured in topic hubs

- [Data Visualization](/resources/topics/data-visualization)
