New to Kendo UI for jQueryStart a free 30-day trial

Nodes.labels

configuration

The node labels configuration options.

<div id="sankey"></div>
<script>
$("#sankey").kendoSankey({
    data: {
        nodes: [
            { id: 1, label: { text: "Solar" } },
            { id: 2, label: { text: "Electricity" } }
        ],
        links: [
            { sourceId: 1, targetId: 2, value: 40 }
        ]
    },
    nodes: {
        labels: {
            ariaTemplate: (data) => `Node: ${data.node.label.text}`
        }
    }
});
</script>

nodes.labels.ariaTemplate

String` | `Function

The template that will be used for the aria-label attribute of the node.

<div id="sankey"></div>
<script>
$("#sankey").kendoSankey({
    data: {
        nodes: [
            { id: 1, label: { text: "Solar" } },
            { id: 2, label: { text: "Electricity" } }
        ],
        links: [
            { sourceId: 1, targetId: 2, value: 40 }
        ]
    },
    nodes: {
        labels: {
            ariaTemplate: (data) => `Node: ${data.node.label.text} - Total: ${data.node.value} units`
        }
    }
});
</script>