data.nodes.alignString
The alignment of the node. The supported values are:
- "stretch" - The node is aligned to left or right in order to fill the entire width of the Sankey.
- "left" - The node is aligned to the left.
- "right" - The node is aligned to the right.
Example
<div id="sankey" style="width: 500px; height: 200px;"></div>
<script>
$("#sankey").kendoSankey({
data: {
nodes: [
{ id: 1, label: { text: "Left Node" }, align: "left" },
{ id: 2, label: { text: "Right Node" }, align: "right" },
{ id: 3, label: { text: "Center Node" }, align: "stretch" }
],
links: [
{ sourceId: 1, targetId: 3, value: 10 },
{ sourceId: 2, targetId: 3, value: 15 }
]
}
});
</script>