nodes.labels.ariaTemplateString` | `Function
The template that will be used for the aria-label attribute of the node.
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 }
]
},
nodes: {
labels: {
ariaTemplate: (data) => `Node: ${data.node.label.text} - Total: ${data.node.value} units`
}
}
});
</script>
In this article