data.nodes.label.alignString(default: "left")

The alignment of the label. The supported values are:

  • "left" - The label is aligned to the left.
  • "right" - The label is aligned to the right.
  • "center" - The label is aligned to the center.

Example

<div id="sankey" style="width: 500px; height: 200px;"></div>
<script>
    $("#sankey").kendoSankey({
        data: {
            nodes: [
                { id: 1, label: { text: "Left Label", align: "left" } },
                { id: 2, label: { text: "Center Label", align: "center" } },
                { id: 3, label: { text: "Right Label", align: "right" } }
            ],
            links: [
                { sourceId: 1, targetId: 2, value: 10 },
                { sourceId: 2, targetId: 3, value: 5 }
            ]
        }
    });
</script>
In this article
data.nodes.label.align
Not finding the help you need?
Contact Support