# RadzenSankeyDiagram<TItem> Class

RadzenSankeyDiagram component.

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md)
- RadzenSankeyDiagram<TItem>

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender

## Syntax

```csharp
public class RadzenSankeyDiagram<TItem> : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender
```

## Type Parameters

| Name | Description |
|------|-------------|
| TItem | The type of data item. |

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenSankeyDiagram<TItem>()` | RadzenSankeyDiagram component. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| Animated | `bool` | Gets or sets whether to animate the flow in the links. |
| ColorScheme | [`ColorScheme`](https://blazor.radzen.com/docs/api/Radzen.Blazor.ColorScheme.md) | Gets or sets the color scheme of the chart. |
| Data | `IEnumerable<TItem>` | Gets or sets the data. Each item represents a link/flow in the diagram. |
| FlowText | `string` | Gets or sets the tooltip text for "Flow". |
| IncomingText | `string` | Gets or sets the tooltip text for "Incoming". |
| LinkFills | `IList<string>` | Gets or sets the link fill colors. If not specified, inherits from source node. |
| NodeAlignment | [`SankeyAlignment`](https://blazor.radzen.com/docs/api/Radzen.Blazor.SankeyAlignment.md) | Gets or sets the node alignment. |
| NodeFills | `IList<string>` | Gets or sets the node fill colors. If not specified, uses color scheme. |
| NodePadding | `double` | Gets or sets the node padding. |
| NodeWidth | `double` | Gets or sets the node width. |
| OutgoingText | `string` | Gets or sets the tooltip text for "Outgoing". |
| SourceLabelProperty | `string` | Specifies the property of TItem which provides the source node label. |
| SourceProperty | `string` | Specifies the property of TItem which provides the source node ID. |
| TargetLabelProperty | `string` | Specifies the property of TItem which provides the target node label. |
| TargetProperty | `string` | Specifies the property of TItem which provides the target node ID. |
| TooltipService | [`TooltipService`](https://blazor.radzen.com/docs/api/Radzen.TooltipService.md) | Gets or sets the tooltip service. |
| TooltipStyle | `string` | Gets or sets the CSS style of the tooltip. |
| ValueFormatter | `Func<double, string>` | Gets or sets the value formatter for tooltip display. |
| ValueProperty | `string` | Specifies the property of TItem which provides the flow value. |
| ValueText | `string` | Gets or sets the tooltip text for "Value". |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `Dispose()` | `void` |  |
| `GetComponentCssClass()` | `string` |  |
| `OnAfterRenderAsync(bool firstRender)` | `Task` |  |
| `OnBecameInvisible()` | `void` |  |
| `Reload()` | `void` | Causes the component to re-render. Use it when Data has changed. |
| `Resize(double width, double height)` | `Task` | Called by JavaScript when the chart container is resized. |
| `SetParametersAsync(ParameterView parameters)` | `Task` |  |

## Inherited Members

- From [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md): AddContextMenu, Attributes, ContextMenu, Culture, CurrentStyle, Debounce, DefaultCulture, DefaultUICulture, Element, GetCssClass, GetId, GetIdAttribute, IsJSRuntimeAvailable, JSRuntime, Localize, MouseEnter, MouseLeave, OnContextMenu, OnInitialized, OnMouseEnter, OnMouseLeave, RaiseContextMenu, RaiseMouseEnter, RaiseMouseLeave, Reference, Style, UICulture, UniqueID, Visible
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

