Step Line Chart
Stair-step transitions highlight discrete changes and hold periods in your data. Build step line charts for pricing tiers, status changes, and categorical shifts — free in our line graph maker.
Line Chart Types/Fundamentals/Step Line
Stair-step transitions highlight discrete changes and hold periods in your data. Build step line charts for pricing tiers, status changes, and categorical shifts — free in our line graph maker.
Step lines create stair-step patterns that emphasize discrete, instantaneous changes and the constant periods between them. Unlike smooth or straight lines, a step line never implies a gradual transition — the value is either the old one or the new one, nothing in between.
x (timestamp or category), y (value), series (optional).step: "start" (or "middle" / "end").x,y,series
Mon,120,Step Start
Tue,132,Step Start
Wed,101,Step Start
Thu,134,Step Start
Fri,90,Step Start
Sat,230,Step Start
Sun,210,Step Start
Mon,220,Step Middle
Tue,282,Step Middle
Wed,201,Step Middle
Thu,234,Step Middle
Fri,290,Step Middle
Sat,430,Step Middle
Sun,410,Step Middle
Mon,450,Step End
Tue,432,Step End
Wed,401,Step End
Thu,454,Step End
Fri,590,Step End
Sat,530,Step End
Sun,510,Step End
What is the difference between step positions (start, middle, end)?
When should I use a step line instead of a regular line? Use a step line when values remain constant between discrete change points and any interpolation between points would be misleading. Common signals: your data represents states, tiers, thresholds, or discrete decisions rather than continuously measured quantities.
Should I show data points on step lines? Generally no — the steps themselves mark the transitions clearly. However, showing points at change moments can help in sparse datasets or when you want to draw attention to specific events like price hikes or status changes.
How do step lines handle missing data? Step lines create gaps for missing points, which honestly indicates data unavailability. This is usually better than interpolation, because step data represents discrete states that should not be estimated.
Can I combine step lines with regular lines on the same chart? Yes. A common pattern is a step line for actual state (e.g., pricing tier) overlaid with a smooth line for a continuous metric (e.g., usage). Use distinct visual styles — solid step vs dashed smooth, or different colors — so readers can tell them apart.
How do I show multiple states with color coding?
Use visualMap or conditional styling to color segments based on value ranges. For example, green for "within target," yellow for "warning," red for "critical." This works especially well for threshold monitoring dashboards.