labels.positionString(default: "inside")

The position of the label. The supported values are:

  • "inside" - The label is positioned after the node, except for the nodes at the end of the Sankey, that are placed before the node.
  • "before" - The label is positioned before the node.
  • "after" - The label is positioned after the node.

Example

<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" } }
            ],
            links: [
                { sourceId: 1, targetId: 2, value: 10 }
            ]
        },
        labels: {
            position: "before"
        }
    });
</script>
In this article
labels.position
Not finding the help you need?
Contact Support