Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

A line chart with step

A React line chart with step interpolation creating staircase visualization for values that remain constant between measurements using shadcn/ui and Recharts

Some values don't change gradually—they jump. This React line chart uses type='step' interpolation to create staircase patterns where horizontal lines show constant values and vertical lines show instant changes. Built with shadcn/ui and Recharts, step interpolation accurately represents discrete state changes, price tiers, inventory counts, or any metric that holds steady until it shifts. Unlike smooth curves that imply gradual transitions or linear lines that suggest continuous change, step charts say the value stayed exactly at this level until this moment, then jumped to that level. Perfect for pricing history, stock levels, subscription tiers, status changes, or configuration values over time.

A line chart with step preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.