labels.offsetObject

The offset applied to the label's position.

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: {
            offset: {
                left: 10,
                top: -5
            }
        }
    });
</script>
In this article
labels.offsetRelated Properties
Not finding the help you need?
Contact Support