Skip to content
ChartslibraryUI
Get Pro

React bump chart

How a ranking changes over time: one line per item, position is rank.

Get Pro to install · $79 once<BumpChart />

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.

When to use

  • Top products or customers by revenue each quarter
  • Channel or region league tables over time
  • Feature usage rank month by month

When not to use

Good practice

  • Keep to about ten items, and highlight the few the title is about.
  • Use rankBy="asc" when smaller is better (cost, latency).
  • Say in the subtitle what the rank is based on.

Installation

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 Pro

Usage

Usage 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 Pro

Data

One 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

Props

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[];
}

Slope chart

Two points in time per item, where both change and rank matter.

Line chart

Trends over time for one to four series, with gaps for missing data and marked forecasts.

Small multiples

One small chart per group on a shared scale, instead of a ten-colour spaghetti chart.

Sign in to ChartslibraryUI

New here? The same step creates your account.

Continue with Google
or

No password needed. Bought Pro? Use the email you paid with and your license is there. By signing in you agree to the Terms and Privacy policy.