data.nodes.offsetObject(default: { top: 0, left: 0 })
The offset applied to the node's position.
Example
<div id="sankey" style="width: 500px; height: 200px;"></div>
<script>
$("#sankey").kendoSankey({
data: {
nodes: [
{
id: 1,
label: { text: "Offset Node" },
offset: {
left: 20,
top: 10
}
},
{ id: 2, label: { text: "Normal Node" } }
],
links: [
{ sourceId: 1, targetId: 2, value: 10 }
]
}
});
</script>
In this article