SankeyComponent
The Sankey diagram component.
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `
<kendo-sankey [data]="data">
</kendo-sankey>
`,
})
export class AppComponent {
public data: SankeyData = {
nodes: [
{ id: 1, label: { text: 'Linux' } },
{ id: 0, label: { text: 'iOS'} },
{ id: 2, label: { text: 'Mobile' } },
{ id: 3, label: { text: 'Desktop' } },
],
links: [
{ sourceId: 0, targetId: 2, value: 1 },
{ sourceId: 1, targetId: 2, value: 2 },
{ sourceId: 1, targetId: 3, value: 3 },
],
};
}
Selector
kendo-sankey
Export Name
Accessible in templates as #kendoSankeyInstance="kendoSankey"
Inputs
Name | Type | Default | Description |
---|---|---|---|
data |
|
The data of the Sankey component containing the | |
disableAutoLayout? |
|
If set to | |
labels? |
|
The default configuration for labels. These settings will be applied to all labels unless overridden by individual data items. | |
legend? |
|
The legend configuration of the Sankey component. | |
links? |
|
The default configuration for links. These settings will be applied to all links unless overridden by individual data items. | |
navigable? |
|
|
If set to |
nodes? |
|
The default configuration for nodes. These settings will be applied to all nodes unless overridden by individual data items. | |
popupSettings |
|
The settings for the tooltip popup. | |
title? |
|
The title configuration of the Sankey component. | |
tooltip? |
|
The configuration of the Sankey tooltip. |
Events
Name | Type | Description |
---|---|---|
linkClick |
|
Fires when a link is clicked. |
linkEnter |
|
Fires when the mouse pointer enters a link. Similar to the |
linkLeave |
|
Fires when the mouse pointer leaves a link. Similar to the |
nodeClick |
|
Fires when a node is clicked. |
nodeEnter |
|
Fires when the mouse pointer enters a node. Similar to the |
nodeLeave |
|
Fires when the mouse pointer leaves a node. Similar to the |
Methods
exportImage | ||||||
---|---|---|---|---|---|---|
Exports the Sankey diagram as an image. The export operation is asynchronous and returns a promise. | ||||||
| ||||||
|
exportSVG | ||||||
---|---|---|---|---|---|---|
Exports the Sankey diagram as an SVG document. The export operation is asynchronous and returns a promise. | ||||||
| ||||||
|
exportVisual | ||||||
---|---|---|---|---|---|---|
Exports the visual of the Sankey component to a drawing group. | ||||||
| ||||||
|
notifyChanges | ||||||
---|---|---|---|---|---|---|
Updates the component fields with the specified values and refreshes the widget. Use this method when the configuration values cannot be set through the template. ts
| ||||||
|
reloadTheme |
---|
Reloads the Sankey appearance settings from the current Kendo UI Theme. Call this method after loading a different theme stylesheet. |