Klar

Charts / React engineering charts / Flow

Multi-level Sankey

Any acyclic flow laid out in columns; here a cloud bill traced from account to service to team to product, with the untagged leak flagged.

React component Sankey, data through props. Where value goes, stage to stage: funnels, ribbons, bridges. Tags: sankey, flow, multi-level, cost-allocation, cloud-bill, finops.

Install

npm i klar-charts

import 'klar-charts/styles.css'
import { ThemeScope, Sankey } from 'klar-charts'

# or copy the source:
npx shadcn@latest add https://klar.run/r/tech-sankey.json

Usage

<Sankey nodes={costNodes} links={costLinks} height={440} columns={['Account', 'Service', 'Team', 'Product']} format={(v) => fmt.usdShort(v)} labelWidth={130} />

Related multi-level sankey charts