tooltip.nodeTemplateString|Function

The template which renders the tooltip content for the nodes.

Example

<div id="sankey" style="width: 500px; height: 200px;"></div>
<script>
$("#sankey").kendoSankey({
    tooltip: {
        nodeTemplate: (data) => `Node: ${data.label.text} (Value: ${data.value})`
    },
    data: {
        nodes: [
            { id: 1, label: { text: "Node 1" } },
            { id: 2, label: { text: "Node 2" } }
        ],
        links: [
            { sourceId: 1, targetId: 2, value: 25 }
        ]
    }
});
</script>
In this article
tooltip.nodeTemplate
Not finding the help you need?
Contact Support