> For the complete documentation index, see [llms.txt](https://docs.heisenware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.heisenware.com/reference/widgets/display/sankey-chart.md).

# Sankey Chart

Sankey flow diagram of weighted links between nodes, from rows with source, target and weight fields

<figure><img src="https://3495989837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE5Ketpww1s7TauSAJrJ8%2Fuploads%2Fgit-blob-227865f394a46187f18527152cec15b71ee73985%2Fwidget-sankey-chart.png?alt=media" alt="Sankey chart of a day&#x27;s energy flow from grid and solar roof through the main switchboard to lines, compressed air, building, ovens and filling" width="948"><figcaption></figcaption></figure>

A Sankey chart shows flows: where something comes from, where it goes and how much of it. The width of each band is its weight, so the big consumers and the big losses stand out at once. It takes one row per flow, with a source, a target and a weight.

**Good for:** energy and media flows, material flows through a plant, yield and loss analysis.

## Properties

The widget's General tab lists these properties under Receives and Emits. Drop an executor's output, input or trigger onto a row to link it. An example also fills an unlinked widget as demo data in the App Builder.

{% tabs %}
{% tab title="Receives" %}
**`data`** (from an output, `Array<object>`): The flows to plot: one object per link between two nodes.

<details>

<summary>Example</summary>

```json
[
  {
    "from": "Boiler",
    "to": "Turbine",
    "weight": 120
  },
  {
    "from": "Turbine",
    "to": "Generator",
    "weight": 95
  }
]
```

</details>
{% endtab %}
{% endtabs %}

## Settings

Double-click the widget in the Page editor to open its settings, grouped in these tabs.

<details>

<summary>Look &#x26; feel</summary>

* **Title**: Title shown above the diagram; empty shows none.
* **Source field**: Field naming the node a link starts from.
* **Target field**: Field naming the node a link ends at.
* **Weight field**: Field giving a link's flow amount, which sets its thickness.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.heisenware.com/reference/widgets/display/sankey-chart.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
