Bar chart race

Pro

A bar chart race over time: bars swap places on springs, values roll, a big period label crossfades, and a timeline slider plays, pauses, drags and takes keys.

A recording of the component itself. With Pro you get its full source and it runs in your app.

What you get

  • One continuous time model for play, scrub and seek
  • Rows reorder on springs with a caret on each overtake
  • Axis ticks slide and fade as the scale grows
  • Slider role with arrows, Page keys, Home, End and Space
  • One TypeScript file in your project, yours to edit. No runtime package.
  • Keyboard, screen reader and reduced motion support; light and dark; your shadcn theme.

Install

npx shadcn@latest add @goodui-pro/race-bar-chart

Needs a Pro license key in your registry config: two-minute setup. The file lands in components/goodui/race-bar-chart.tsx.

More Pro components

Sankey flow

A Sankey diagram laid out from plain nodes and links: ribbons carry particles in proportion to volume, hovering a node traces its flows end to end with totals, and new data morphs the chart while values roll.

Pro

Network graph

A force-directed graph on canvas with its own simulation: nodes settle on springs, a dragged node pulls its neighbours and stays pinned, hover lifts a neighbourhood out of the crowd, and search rings the matches.

Pro

Candlestick chart

A canvas trading chart with OHLC candles, a volume pane, moving averages and a crosshair with price and date labels: wheel zoom eases in at the pointer, drag pans with inertia and live ticks animate the candles.

Pro