# Sankey chart

Themed flow diagrams with source, target, solid, or gradient links.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).





<ComponentPreview name="ex-sankey-chart">
  <div className="h-[470px] w-full rounded-xl border">
    <ChartcnExampleSankeyChart />
  </div>
</ComponentPreview>

## Install [#install]

```bash
npx shadcn@latest add @chartcn/sankey-chart
```

Numeric link indices are converted to ECharts node names. Node labels can live inside or outside the flow and optionally include aggregated values.
