Line Chart Best Practices
The core line chart best practices are simple: use lines only for continuous data (usually time), plot four lines or fewer, pick a y-axis range that shows the trend honestly (a zero baseline is not required for line charts), and label lines directly instead of relying on a legend. Everything else is a refinement of those four rules.
When Should You Use a Line Chart?
Use a line chart when your x-axis is continuous and ordered, almost always time, and the point is how values change: stock prices, website traffic, temperature, monthly revenue. The connecting line implies that intermediate values exist between points, so if that implication is false, a line chart is the wrong choice.
- Good fit: continuous time series, trends, rate of change, comparing 2-4 related trends on the same axes
- Wrong choice: discrete categories (use a bar chart), parts of a whole (stacked area), distributions (histogram), correlation between two variables (scatter plot)
If you're unsure which chart fits your data, run through a chart selection framework first.
How Many Lines Should a Line Chart Have?
Three to four lines is the practical maximum; beyond five, the chart turns into spaghetti and readers stop tracing individual series. If you must show many series, highlight the one or two that matter in full color and render the rest in light gray, or split the chart entirely.
1-3 lines: ideal, easy to follow
4-5 lines: workable if colors are distinct
6+ lines: spaghetti - restructure the chart
Fixes for many series:
- Small multiples (one mini chart per series)
- Highlight 1-2 lines, gray out the rest
- Interactive filtering or toggling
Whatever the count, make lines distinguishable: distinct colorblind-safe colors for 2-4 lines, varied dash patterns if the chart may be printed in black and white, and a thicker stroke for the primary series. Label lines directly at their right endpoint whenever possible; legends force the reader's eye to bounce back and forth.
Does a Line Chart Need to Start at Zero?
No. The zero-baseline rule applies to bar charts, not line charts. Bars encode value by length, so truncating the axis literally lies about magnitude, but lines encode value by vertical position and trend by slope, neither of which requires zero to be honest. Forcing a zero baseline on data that lives far from zero (blood pressure in the 90-120 range, pH from 6.5 to 7.5, stock prices) flattens real variation into a useless straight line.
That said, axis range is still a rhetorical choice. Follow these rules:
- Include zero when absolute magnitude is the message (total revenue, units sold from launch).
- Crop the axis when small variations are the message, and pad the range so the data fills roughly two-thirds of the chart height.
- Never crop to exaggerate. A y-axis from $98M to $102M makes a 4% change look like a 10x swing. If you zoom, say so in a note or subtitle.
- Label the range clearly so readers can see the axis doesn't start at zero.
How Should You Handle Missing Data in a Line Chart?
Leave a visible gap in the line rather than silently connecting across the hole, because an unbroken line claims you know values you don't have. Most libraries do this by default when a value is null; interpolation should be an explicit, labeled choice, not an accident.
Missing data options, best to worst:
1. Break the line (gap) and note why data is missing
2. Dashed segment across the gap = "interpolated"
3. Impute values, clearly footnoted
Never: connect straight across a 3-month hole
as if nothing happened
Related trap: uneven time intervals. Plotting Jan, Feb, Mar, Aug, Dec at equal spacing distorts every slope in the chart. Keep intervals consistent, and if you must skip periods, mark the break on the axis.
How Do You Annotate a Line Chart?
Annotate the two or three moments that explain the shape of the line: a product launch, a pricing change, a holiday spike. Raw trends rarely speak for themselves, and a short label at the right point saves a paragraph of caption text.
- Event markers with short labels ("Product launch", "Competitor entered")
- Shaded regions for periods ("30% growth phase", recession bands)
- Reference lines for targets, historical averages, or benchmarks (dashed)
- Confidence bands (shaded area) around forecasts to show uncertainty
Keep annotations subtle in weight so they support the data instead of competing with it. See chart annotation best practices for layout details.
What Are Small Multiples and When Should You Use Them?
Small multiples replace one crowded chart with a grid of mini line charts, one per series, all sharing the same axes and scale. They are the standard fix for the 6+ line problem: each trend stays readable, and shared scales keep the panels comparable at a glance.
Use them when series overlap heavily, when you have 5-20 series, or when the story is "which of these behave differently?" rather than "which is highest right now?" The one non-negotiable rule: identical y-axis ranges across panels, or comparisons become meaningless. Full walkthrough in the small multiples guide.
What Are the Most Common Line Chart Mistakes?
The most common mistakes are connecting discrete categories with a line, cramming in too many points or series, cropping the y-axis to exaggerate change, and mixing time granularities on one axis. Each one either lies about the data or buries the trend.
- Lines between categories: connecting Product A to Product B implies a continuity that doesn't exist. Use bars.
- Too much data: 10 years of daily points (3,650+) is noise. Aggregate to weekly/monthly or overlay a moving average.
- Misleading axis crop: zooming without saying so. Either widen the range or add a note.
- Mixed granularity: monthly and quarterly data on the same axis creates fake patterns. Convert to one granularity first.
- Marker overload: markers help below ~12 points (quarterly results), clutter above it (daily prices). Match markers to point density.
- Dual y-axes by default: two scales invite manipulation. Only use them for genuinely different units, clearly labeled.
- 3D effects: never. They add nothing and distort slopes.
Quick Checklist Before Publishing
Run through this list before a line chart goes into a report or dashboard; each item takes seconds to verify and catches the mistakes readers notice most.
- โ Title states what's being shown
- โ Both axes labeled with units
- โ Y-axis range is honest (zero included or crop justified and labeled)
- โ Time intervals consistent; gaps shown, not interpolated silently
- โ No more than 4-5 lines (or small multiples used)
- โ Lines directly labeled with colorblind-safe colors
- โ Key events annotated
- โ Aspect ratio wider than tall (2:1 or 3:2)
- โ Source cited
Golden Rule: The slope of a line is more important than its absolute position. Design your chart so trends are obvious at a glance. If someone has to squint or study your chart for 30 seconds, your Y-axis range or aspect ratio is wrong.