Line
Line Chart
A line chart connects data points with straight lines to reveal trends, patterns, or changes over time. It is one of the most fundamental and widely used chart types in data visualization.
When to use it?
Use a line chart whenever your data is continuous and ordered — most commonly for time-series data such as revenue over months, temperature over days, or website traffic over weeks. It is also appropriate for any sequential domain where the direction of change matters.
What makes it effective?
The line itself communicates movement and direction. Rising lines signal growth, falling lines signal decline, and fluctuations reveal volatility. Multiple lines enable easy comparison of trends across different series.
When to avoid it?
Avoid line charts for categorical data with no inherent order — connecting unrelated categories with a line implies a continuity that doesn't exist. For such cases, a bar chart is more appropriate.
Line charts are the default choice for time-series analysis. Keep the number of lines manageable (ideally under 5–6) to avoid visual confusion, and use distinct colors or dash styles to differentiate series.
