nodes.alignString(default: "stretch")

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"></div>
<script>
$("#sankey").kendoSankey({
    data: {
        nodes: [
            { id: 1, label: { text: "Solar" } },
            { id: 2, label: { text: "Electricity" } }
        ],
        links: [
            { sourceId: 1, targetId: 2, value: 40 }
        ]
    },
    nodes: {
        align: "left"
    }
});
</script>
In this article
nodes.align
Not finding the help you need?
Contact Support