links.labels.ariaTemplateString` | `Function
The template that will be used for the aria-label attribute of the link.
Example
<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>
In this article