Sankey flow

Pro

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.

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

What you get

  • Own layout: layering, ordering and relaxation, no chart library
  • Canvas particles on every link, shared out by volume
  • Hover or focus traces a path upstream and downstream
  • Draws in on scroll; data changes morph and values roll
  • 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/sankey-flow

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

More Pro components

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

Radar chart

A multi-series radar whose polygons spring-morph between datasets, with axis labels that wrap and push apart, a hover spotlight on a series and legend chips that hide series.

Pro