data.nodes.paddingNumber(default: 16)
The minimum vertical space between two nodes.
Example
<div id="sankey" style="width: 500px; height: 300px;"></div>
<script>
$("#sankey").kendoSankey({
data: {
nodes: [
{ id: 1, label: { text: "Node 1" }, padding: 30 },
{ id: 2, label: { text: "Node 2" }, padding: 30 },
{ id: 3, label: { text: "Node 3" }, padding: 5 },
{ id: 4, label: { text: "Node 4" }, padding: 5 }
],
links: [
{ sourceId: 1, targetId: 3, value: 10 },
{ sourceId: 2, targetId: 4, value: 10 }
]
}
});
</script>
In this article