tooltip Object
The tooltip configuration options.
Example - Configure the tooltip of the Sankey
<div id="sankey" style="width: 500px; height: 200px;"></div>
<script>
$("#sankey").kendoSankey({
data: {
nodes: [
{ id: 1, label: { text: "Node 1" } },
{ id: 2, label: { text: "Node 2" } },
{ id: 3, label: { text: "Node 3" } }
],
links: [
{ sourceId: 1, targetId: 3, value: 2 },
{ sourceId: 2, targetId: 3, value: 1 }
]
},
tooltip: {
appendTo: "body",
delay: 1000,
followPointer: false,
linkTemplate: "#= dataItem.source.label.text # -> #= dataItem.target.label.text # #= value #",
nodeTemplate: "#= dataItem.label.text # #= value #",
offset: 12
}
});
</script>