Slope chart
Two points in time per item, where both change and rank matter.
How a ranking changes over time: one line per item, position is rank.
A bump chart shows how a ranking changes from period to period. Each item is a line and its height is its rank, so climbs and falls are the first thing you see. The values behind the ranks stay in the tooltip and the table.
You pass values, not ranks: the chart ranks items in each period, largest first by default or smallest first for things like cost. Items missing in a period are not ranked there and their line breaks. Names sit at both ends with the starting and final rank, and you can highlight the items your title talks about.
Use it for league tables over time. When the size of the gaps matters more than the order, a line chart is the better choice; with only two periods, use a slope chart.
Bump chart is a Pro chart.
Installation is part of Pro
Get Pro to install it with your access key and the shadcn CLI, and use it in unlimited projects.
Unlock with ProUsage examples are part of Pro
Every example on this page comes with its code in Pro. The props and data shape below are public.
Unlock with ProOne row per period with a period key and one numeric key per item; ranks are computed for you.
[{ quarter: "Q1", north: 4.2, south: 3.9, west: 5.1 }, ...]Missing values are null. Invalid values make the chart say what’s wrong instead of drawing a misleading picture. How charts handle bad data
Every chart also accepts the shared frame props: title, subtitle, source, height, mode, toolbar. Common API
export interface BumpChartProps extends FrameProps {
/** One row per period, in order. See the Data section for the shape. */
data: Row[];
/** Key of the period label (e.g. "Q1 2026"). */
x: string;
/** Keys of the items to rank. Each row holds every item's value for that period. */
series: { key: string; label?: string }[];
/** Number format for the values shown in the tooltip and table. */
format?: FormatInput;
/** "desc": the largest value ranks 1st (revenue, market share). "asc": the smallest ranks 1st (latency, cost). */
rankBy?: "desc" | "asc";
/** Items to draw in colour; the rest are grey. Default: all in colour (up to 8). */
highlight?: string | string[];
}Two points in time per item, where both change and rank matter.
Trends over time for one to four series, with gaps for missing data and marked forecasts.
One small chart per group on a shared scale, instead of a ten-colour spaghetti chart.