data.nodes.label.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: "Before Node", position: "before" } },
{ id: 2, label: { text: "After Node", position: "after" } },
{ id: 3, label: { text: "Inside Node", position: "inside" } }
],
links: [
{ sourceId: 1, targetId: 3, value: 10 },
{ sourceId: 2, targetId: 3, value: 5 }
]
}
});
</script>
In this article