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

Links.labels

configuration

The link 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 }
        ]
    },
    links: {
        labels: {
            ariaTemplate: (data) => `Link: ${data.value} units`
        }
    }
});
</script>

links.labels.ariaTemplate

String` | `Function

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

<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 }
        ]
    },
    links: {
        labels: {
            ariaTemplate: (data) => `Flow from ${data.link.source.label.text} to ${data.link.target.label.text}: ${data.link.value} units`
        }
    }
});
</script>