# Legend

To have a legend in your Sankey Diagram, tick the ‘Show legend’ button. When having a large selection of dimensions, it may be of benefit to using a colour legend to display.

<figure><img src="/files/JCT83a7kT7wCrmBu7fLU" alt="" width="375"><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Color" %}
Use the circle to open the colour pallet to change your scale color.
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Legend Type" %}
Choose between a Color legend to elaborate on the used colors or a Scale legend to visualize the size of nodes and links. Color legends will show the configured dimension alongside their color. The scale legend shows a reference bar with a specific value for referential purposes. &#x20;
{% endtab %}

{% tab title="Legend position" %}
Choose where your legend will be. Left, Right, Top(color only) & Bottom (color only). Every Sankey Diagram could be different, change to give your dashboard the best look. This way you can match the Sankey diagram to the rest of your dashboard.
{% endtab %}

{% tab title="Legend order" %}
Have the scale showing from High – Low or Low – high
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Number of columns" %}
Decide how many columns the color legend should show in your view. This will help with the look of your Sankey Diagram.
{% endtab %}

{% tab title="Horizontal shift" %}
Use the slider to adjust the position horizontally of your Legend. Use this to get your legend in the perfect position.
{% endtab %}

{% tab title="Vertical shift" %}
Use the slider to adjust the position vertically. This could allow you to have more text shown in your view. &#x20;
{% endtab %}
{% endtabs %}

<br>


---

# Agent Instructions: 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:

```
GET https://docs.infotopics.com/showmemore/features/sankey-diagram/legend.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
