> For the complete documentation index, see [llms.txt](https://docs.buildings.ability.abb/collection/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.buildings.ability.abb/collection/platform/live-cockpit/widgets/predefined-widgets/sankey-diagram.md).

# Sankey Diagram

Sankey diagrams are particularly well-suited for displaying inflows and outflows to a quantity.

Since the inflows and outflows are represented by arrows with a thickness proportional to the quantity, energy flows, for example, can be made intuitively understandable.

<div data-full-width="true"><figure><img src="https://3489494878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9GvUpaatBiReR43XFSMg%2Fuploads%2FOdn8SK5d0keuAjY58onw%2FA86A460A-F303-48CF-BD3B-9B7B4FBEB064.png?alt=media&#x26;token=9caec9d6-abc5-4683-aca3-8215f5a9a7d2" alt=""><figcaption><p>A Sankey diagram with 2 inflows (left) and several outflows (right).</p></figcaption></figure></div>

## When should this display be used?

The Sankey diagram should be used when you want to display energy and material flows. Sankey diagrams are excellent for showing how much of the total output is consumed by individual consumers.

## Configure Widget

{% @supademo/embed url="<https://app.supademo.com/demo/_yIBx6mWTACoiIBCX7jqX>" demoId="\_yIBx6mWTACoiIBCX7jqX" fullWidth="true" %}

1. Make sure you are in the "Dashboard" menu
2. Click on "Add widget"
3. Click on "View"
4. Click on "Sankey Overview"
5. Select the primary asset. The name of this asset will appear in the title bar of the widget.
6. Select an asset to act as a source.
7. Select the attribute of the source.
8. Choose whether the current value or the aggregated value should be used for calculations.
9. Optional: Repeat the last steps to create another source.
10. Select an asset to act as a sink. A sink can be a consumer, for example.
11. Select the attribute of the sink.
12. Choose whether the current value or the aggregated value should be used for calculations.
13. Optional: Repeat the last steps to create more sinks.
14. Optional: Select how much space your new widget should occupy on the dashboard.
15. Click on "Add widget"


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.buildings.ability.abb/collection/platform/live-cockpit/widgets/predefined-widgets/sankey-diagram.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
