Components / Data display / Flow diagram

D7 · Data display New

Flow diagram

Signed bands from sources to uses. Colour follows the use: out or held.

When to use

  • An amount splits from sources into uses.
  • The sign of each use matters.

When not to use

  • There is no conservation to show.
  • A table of two columns is enough.

Usage

<svg class="c-flow" viewBox="0 0 320 80" role="img" aria-label="Example flow">
  <path d="M80,10 C140,10 180,40 240,40 L240,60 C180,60 140,30 80,30 Z" fill="var(--accent)" opacity="0.55"></path>
</svg>

Variants

The preview shows the form used in the gallery.

Props

NameTypeDefaultDescription
sourcename and amount—Left nodes. Payroll and Refund in this example.
usename, amount, kind—Right nodes. Kind is out or hold.
linkamount—Band thickness on each side.

Keyboard

KeyAction
TabReaches Values.
EnterOpens Values.

Accessibility

Motion

Pattern origin

Pattern type: a signed flow diagram.

Related

TreemapSource noteKPI tiles