# Labels

## Labels formatting

<figure><img src="/files/7wqNtqHCfSq9kUPy6OHb" alt="" width="375"><figcaption><p>Part of Sankey configuration panel -> Labels</p></figcaption></figure>

### Format options

{% tabs %}
{% tab title="Font Size" %}

#### You can change the size of the font from 50% to 150% using the dropdown menu. Changing the font size will affect all fonts within your Sankey Diagram.

{% endtab %}

{% tab title="Font Color:" %}

#### Please refer to [Text and Background](/showmemore/features/sankey-diagram/color-formatting/text-and-background.md) for more info.

{% endtab %}

{% tab title="Header Aliases" %}

#### If you enable the headers under the "Format" tab, you can display the names of dimensions used in your Sankey Diagrams. Once enabled, you can use header aliases to change the names of dimensions displayed above the Sankey Nodes.

{% endtab %}
{% endtabs %}

## **Header liases**

The headers can be configured using this setting. By default, the header values are the dimension names, which can be adjusted to meet specific requirements. Users may set custom headers to better align with their data needs and preferences.

<figure><img src="/files/TBQPYD6WXkeX6HaPQyn7" alt=""><figcaption><p>Example of using header aliases</p></figcaption></figure>

## Label customization

Sankey diagram provide a feature that allows users to customize the labels according to their specific needs. The content of these labels can be configured using HTML format, which enables a wide range of customization options. Additionally, users have the convenience of using short codes such as `<DimensionName>` to dynamically insert the dimension name into the labels. This level of flexibility ensures that the labels can be tailored to convey the exact information required, enhancing the readability and effectiveness of the Sankey diagram in representing data flows and relationships.

#### Example

Here is an example of how you can customize a label using HTML format and a short code:

```html
<span style="color: blue; font-weight: bold;"><DimensionName></span>
```

In this example, the dimension name will be displayed in bold blue text within the Sankey diagram label.

<figure><img src="/files/MwOkfwHc3ebIKN5II9Dd" alt="" width="375"><figcaption><p>Example of customizing labels</p></figcaption></figure>


---

# 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/text-formatting/labels.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.
