Best Data Viz
Time Series

Line Chart

Connects data points with lines to show trends over time. The workhorse of time-series visualization.

Daily Revenue with 7-day Rolling Mean

Raw daily series + smoothed trend

View data (21 rows)
Chart data table: Daily Revenue with 7-day Rolling Mean
DayRevenueRevenue 7 day
2025-01-011150
2025-01-02980
2025-01-031320
2025-01-041450
2025-01-051120
2025-01-061580
2025-01-071290
2025-01-081410
2025-01-091620
2025-01-101250
2025-01-111780
2025-01-121520
2025-01-131690
2025-01-141850
2025-01-151440
2025-01-161920
2025-01-171760
2025-01-182050
2025-01-191890
2025-01-202210
2025-01-211970
Make a line chart with your data

Use a line chart when…

  • Showing trends over time
  • Comparing multiple series
  • Identifying patterns, cycles, anomalies

Avoid when…

  • Fewer than 4 data points
  • Categorical comparison (use bar)
  • Part-to-whole (use stacked area)

Data it needs

PropertyValue
Min Rows4
Min Columns2
Column Types
datenumber

Visual anatomy

Marks
linecircle (optional)
Channels
position-xposition-ycolor-hue
Axes
x-timey-quantitative

Guiding principles

Consider instead

Common mistakes

  • Too many lines (>5) without highlighting

  • Dual y-axes confusing readers

  • Inconsistent time intervals

History

Invented by William Playfair in 1786, one of the earliest statistical graphics.

Accessibility notes

Describe trend direction. Use distinct line styles (solid, dashed) alongside color.

Related reading

Got data? Let's see what works.

Drop your CSV. You'll get a Line Chart plus four alternatives - ranked by which one actually fits your data best.