legend.positionString(default: "right")

The positions of the Sankey legend.

The supported values are:

  • "top" - the legend is positioned on the top.
  • "bottom" - the legend is positioned on the bottom.
  • "left" - the legend is positioned on the left.
  • "right" - the legend is positioned on the right.
  • "custom" - the legend is positioned using legend.offsetX and legend.offsetY.

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 }
        ]
    },
    legend: {
        visible: true,
        position: "bottom"
    }
});
</script>
In this article
legend.position
Not finding the help you need?
Contact Support