Step Line Chart
A line chart that uses horizontal and vertical segments instead of diagonal lines — showing exactly when values change and how long each level persists.
// 01 — The chart
What it looks like
A step line chart showing central bank interest rate decisions. Each horizontal segment shows the rate held constant between decision dates.
// 02 — Definition
What is a step line chart?
A step line chart (also called a step chart or staircase chart) connects data points using only horizontal and vertical line segments, creating a staircase-like pattern. Unlike a standard line chart that draws diagonal lines between points, the step line chart holds each value flat until the next change occurs.
This makes it the ideal choice for data that changes at discrete moments rather than continuously. Interest rates, pricing tiers, server status, and inventory levels all change in abrupt jumps — and a step line chart represents that reality accurately.
The key distinction is philosophical: a regular line chart implies interpolation between points (suggesting values transition smoothly), while a step line chart implies that the value remains constant until the next data point, then jumps instantaneously.
Key insight: Choose a step line chart whenever the underlying data is piecewise constant — that is, it stays at one value and then jumps to another with no gradual transition in between.
// 03 — Anatomy
Parts of a step line chart
// 04 — Usage
When to use it — and when not to
- Values change at discrete points — interest rates, pricing tiers, policy thresholds
- You want to emphasise the exact moment a change occurs
- Data is piecewise constant — the value holds steady between updates
- Showing server status, inventory levels, or subscription plan changes
- Accurate representation matters more than visual smoothness
- Data changes continuously — temperature, stock prices, speed
- You have very many data points close together — steps become noise
- The audience expects smooth trends — step lines can look jagged and alarming
- Interpolation between points is valid and desirable
- You need to show rate of change — diagonal slopes communicate this better
// 05 — Reading guide
How to read a step line chart
Follow these steps whenever you encounter a step line chart.
Read the axes
The x-axis shows time or sequence, the y-axis shows the measured value. Note the scale and units.
Follow the horizontal segments
Each flat segment tells you the value held constant during that period. Longer segments mean the value persisted longer.
Notice the vertical jumps
Each vertical segment marks an instantaneous change. The height of the jump shows the magnitude of the change — up for increases, down for decreases.
Count the steps
The number of vertical transitions tells you how frequently the value changed. Many steps in a short span suggest volatility.
Compare step heights
Are jumps getting bigger or smaller over time? Accelerating step sizes suggest an intensifying trend.
// 06 — Data format
What data you need
A step line chart requires a time or sequence column and one numeric value column. Each row represents the moment a new value takes effect. The chart assumes the value remains constant until the next row.
// 07 — Construction
How to build one
Step 1: Plot your time axis (x) and value axis (y). The y-axis should start at zero or include the full range of values.
Step 2: For each data point, draw a horizontal line from the previous point’s x-position to the current point’s x-position at the previous y-value (step-before) or at the current y-value (step-after).
Step 3: Connect horizontal segments with vertical lines at each transition point. Optionally add dots at the data points to show the exact moment of change.
Step 4: Add axis labels, a title, and consider shading the area below the step line to emphasise magnitude over time.
// 08 — Common mistakes
Mistakes to avoid
Using step lines for continuous data
If your data changes smoothly (temperature, speed, stock prices during trading hours), a step line misrepresents the transitions. Use a regular line chart instead.
Wrong step direction
Step-before vs step-after matters. If a price change takes effect immediately, use step-after. If it takes effect at the next period, use step-before. Getting this wrong shifts your data by one period.
Too many closely spaced steps
When transitions are extremely frequent, the staircase becomes visual noise. Consider aggregating to a coarser time interval or switching to a regular line chart.
Missing the last segment
Don't forget to extend the final horizontal segment to the end of your time range. Stopping at the last data point leaves the current state ambiguous.
// 09 — Real-world examples
Where you’ll see them
Central bank interest rates
The Federal Reserve, ECB, and Bank of England publish rate decisions that are universally shown as step line charts. Rates hold constant between meetings, then jump.
SaaS pricing history
Subscription pricing changes at specific dates and holds until the next adjustment — a natural fit for step lines.
Server uptime and status
Monitoring dashboards use step lines to show service status (up/degraded/down) because status changes are instantaneous events.
// 10 — Quick reference
Key facts
// 11 — Accessibility
Making it accessible
Step line charts are relatively accessible because their staircase shape is simple and distinctive. Use sufficient stroke width for the step line and ensure the colour contrasts well against the background. Add an aria-label summarising the trend and provide a data table for screen reader users. When comparing multiple step lines, use patterns or varying stroke styles alongside colour.
// 12 — Variations
Common variations
Step-before (pre)
The vertical jump happens before the horizontal run — the new value is shown at the data point, the old value held until just before it.
Step-after (post)
The horizontal run extends from the data point, then the vertical jump occurs at the next point. Most common for rates and prices.
Step-middle
The vertical jump occurs at the midpoint between two data points — used when the exact transition time is ambiguous.
Filled step area
The area below the step line is shaded, combining the step line with an area chart to emphasise cumulative magnitude.
// 13 — FAQs
Frequently asked questions
What is a step line chart?+
A step line chart (also called a step chart or staircase chart) connects data points using only horizontal and vertical line segments, creating a staircase-like pattern. Unlike a standard line chart that draws diagonal lines between points, the step line chart holds each value flat until the next change occurs.
When should you use a step line chart?+
Use a step line chart when values change at discrete points — interest rates, pricing tiers, policy thresholds. It also works well when you want to emphasise the exact moment a change occurs, and when data is piecewise constant — the value holds steady between updates.
When should you avoid a step line chart?+
Avoid a step line chart when data changes continuously — temperature, stock prices, speed. It is also a poor fit when you have very many data points close together — steps become noise, or when the audience expects smooth trends — step lines can look jagged and alarming.
What data do you need to make a step line chart?+
A step line chart requires a time or sequence column and one numeric value column. Each row represents the moment a new value takes effect. The chart assumes the value remains constant until the next row.
How is a step line chart different from a line graph?+
Both a step line chart and a line graph can look similar at first glance, but they answer different questions. Reach for a step line chart when the comparisons and patterns it was designed to reveal match what you need to communicate, and choose a line graph when its particular strengths better fit your data and audience.
What is another name for a step line chart?+
Step Line Chart is also known as Step chart, staircase chart, step function plot. The name varies between fields, but the visualisation technique is the same.
What size of dataset works best for a step line chart?+
Step Line Chart works best for Discrete changes — rates, tiers, statuses, thresholds. Outside that range the chart either looks empty or becomes too cluttered to read clearly.
Are step line charts accessible to screen readers?+
Step line charts are relatively accessible because their staircase shape is simple and distinctive. Use sufficient stroke width for the step line and ensure the colour contrasts well against the background. Add an aria-label summarising the trend and provide a data table for screen reader users. When comparing multiple step lines, use patterns or varying stroke styles alongside colour.