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
- Spend to revenue Sankey: Each channel’s ribbon tapers from its share of spend to its share of attributed revenue, so efficient channels fan out.
- Journey flow: Users moving through activation steps as one stream, with drop-offs peeling away into labelled sinks.
- Hex outcome funnel: Six petals for six consult outcomes, each lit from inside in proportion to its count.
- Stage flow: Pipeline value narrowing stage by stage this quarter, with lost deals peeling off the underside.
- MRR bridge: October to November MRR as a floating waterfall on a broken axis, movement by movement.
- Plan flow ribbons: Accounts moving between plans from October to November, sized by MRR, with churn called out.