chartcn

Flow / path

User journey Sankey diagram (Sankey reuse).

Flow / Path
User journey Sankey (Sankey reuse)

Data shape

type FlowData = {
  nodes: Array<{ name: string }>
  links: Array<{
    source: number // index into nodes
    target: number // index into nodes
    value: number // flow magnitude (users)
  }>
}

Same structure as Recharts Sankey: links reference node indices, not names.

On this page