Sankey Diagram Events
This article explains the available events for the Telerik Sankey Diagram for Blazor:
OnNodeClick
The OnNodeClick event fires when the user clicks or taps a node. The OnNodeClick event handler receives an argument of type SankeyNodeClickEventArgs, which exposes the following properties:
| Property | Type | Description |
|---|---|---|
DataItem | SankeyDataNode | The node that the user clicked. The SankeyDataNode provides details for the clicked node such as its label, opacity, color, width, offset and alignment. |
OnNodeEnter
The OnNodeEnter event fires when the user hovers a node. The OnNodeEnter event handler receives an argument of type SankeyNodeEnterEventArgs, which exposes the following properties:
| Property | Type | Description |
|---|---|---|
DataItem | SankeyDataNode | The node that the user hovered. Provides details for the node such as its label, opacity, color, width, offset and alignment. |
OnNodeLeave
The OnNodeLeave event fires when the user exits the hover from a node. The OnNodeLeave event handler receives an argument of type SankeyNodeLeaveEventArgs, which exposes the following properties:
| Property | Type | Description |
|---|---|---|
DataItem | SankeyDataNode | The node that the user hovered. Provides details for the node such as its label, opacity, color, width, offset and alignment. |
OnLinkClick
The OnLinkClick event fires when the user clicks a link. The OnLinkClick event handler receives an argument of type SankeyLinkClickEventArgs, which exposes the following properties:
| Property | Type | Description |
|---|---|---|
Source | SankeyDataNode | The source of the clicked link. Provides details for the source node such as its label, opacity, color, width, offset, alignment and more. |
Target | SankeyDataNode | The target of the clicked link. Provides details for the target node such as its label, opacity, color, width, offset, alignment and more. |
OnLinkEnter
The OnLinkEnter event fires when the user hovers a link. The OnLinkEnter event handler receives an argument of type SankeyLinkEnterEventArgs, which exposes the following properties:
| Property | Type | Description |
|---|---|---|
Source | SankeyDataNode | The source of the hovered link. Provides details for the source node such as its label, opacity, color, width, offset, alignment and more. |
Target | SankeyDataNode | The target of the hovered link. Provides details for the target node such as its label, opacity, color, width, offset, alignment and more. |
OnLinkLeave
The OnLinkLeave event fires when the user hovers a link. The OnLinkLeave event handler receives an argument of type SankeyLinkLeaveEventArgs, which exposes the following properties:
| Property | Type | Description |
|---|---|---|
Source | SankeyDataNode | The source of the link. Provides details for the source node such as its label, opacity, color, width, offset, alignment and more. |
Target | SankeyDataNode | The target of the link. Provides details for the target node such as its label, opacity, color, width, offset, alignment and more. |
Example
Handling the Sankey diagram events