Skip to examples
Browse chart types
Chart library26 ways to visualize

STATISTICS / CHART GUIDE

Sankey Diagram

A Sankey diagram is a chart used to visualize the flow of resources such as energy, money, or materials between different nodes.

01 / EXPLORE

See it in action.

Switch to Code to copy an example.

Global energy flow from primary sources to end use.

User behavior path analysis from homepage to payment completion, custom colors

Supply chain fund flow from raw materials to consumers, custom palette

About Sankey Diagram

A Sankey diagram is a chart used to visualize the flow of resources such as energy, money, or materials between different nodes. It uses bandwidth to represent flow magnitude, with nodes and flow lines intuitively showing the direction and distribution of each part. It is commonly used in energy flow, fund flow, user path analysis, and other scenarios.

02 / CONFIGURE

Make it yours.

The properties available for this chart.

Configuration Options

PropertyTypeRequiredDescription
typestringrequiredValue must be "sankey".
dataObject[]requiredSankey diagram data.
data.sourcestringrequiredSource node name.
data.targetstringrequiredTarget node name.
data.valuenumberrequiredFlow value.
nodeAlign'left' | 'center' | 'right' | 'justify'optionalNode alignment, default is "center".
titlestringoptionalChart title.
themeBuiltinThemeName | ThemeSpecoptionalBuilt-in theme name or custom theme object; default is "default". See Documentation → Custom Themes.
styleObjectoptionalChart style.
style.palettestring[]optionalMust be an array of valid color values.
style.backgroundColorstringoptionalMust be a valid color value.
GPT-Vis · An AntV project · MIT licensed