<style>
    .article table {
        table-layout: auto;
        word-break: normal;
    }
</style>

# Sankey Links

The Sankey Diagram Links are the lines that connect the [nodes](https://www.telerik.com/blazor-ui/documentation/components/sankey/elements/nodes) to each other. The greater the value of the link, the greater the width of the link will be. This article explains how to customize the links in the UI for Blazor Sankey Diagram.

> tip Each setting applies to all links in the Sankey Diagram. If you want to provide different settings for the separate links, [customize them through the data source](https://www.telerik.com/blazor-ui/documentation/components/sankey/data-bind#customize-elements-through-data).

## Basic Customization

To customize the nodes, declare the `<SankeyLinks>` tag as a direct child of `<TelerikSankey>`. The `<SankeyLinks>` tag exposes the following parameters:

| Parameter   | Type and Default Value                                                                                                                   | Description                                                                                                                  |
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `ColorType` | [`SankeyLinksColorType` enum](https://www.telerik.com/blazor-ui/documentation/api/telerik.blazor.sankeylinkscolortype) <br /> (`Static`) | The origin of the link color: could be based on the `Color` property, on the source node color, or on the target node color. |
| `Color`     | `string` <br/> (`#666666`)                                                                                                               | The color of the links. Applies when `ColorType="@SankeyLinksColorType.Static"`.                                             |
| `Opacity`   | `double?` <br/> (`0.4`)                                                                                                                  | The opacity of the links.                                                                                                    |

## Nested Customization Tags

The `<SankeyLinks>` tag exposes a child `<SankeyLinksHighlight>` tag that allows you to control the opacity of the links when the user hovers a link. It provides the following parameters:

| Parameter         | Type                    | Description                                                                  |
| ----------------- | ----------------------- | ---------------------------------------------------------------------------- |
| `Opacity`         | `double?` <br/> (`0.8`) | The opacity of the link when the user hovers it.                             |
| `InactiveOpacity` | `double?` <br/> (`0.2`) | The opacity of the non-hovered (inactive) links when the user hovers a link. |

## Example

> caption Customizing the links in the Sankey diagram

<demo metaUrl="client/sankey/links/example-1/" height="620"></demo>

## See Also

* [Live Demo: Sankey Diagram Configuration](https://demos.telerik.com/blazor-ui/sankey/configuration)
* [Sankey Nodes](https://www.telerik.com/blazor-ui/documentation/components/sankey/elements/nodes)
* [Sankey Labels](https://www.telerik.com/blazor-ui/documentation/components/sankey/elements/labels)
* [Sankey Legend](https://www.telerik.com/blazor-ui/documentation/components/sankey/elements/legend)
* [Sankey Title](https://www.telerik.com/blazor-ui/documentation/components/sankey/elements/title)
* [Sankey Tooltip](https://www.telerik.com/blazor-ui/documentation/components/sankey/elements/tooltip)
