legend.orientationString(default: "vertical")

The orientation of the legend items.

The supported values are:

  • "vertical" - the legend items are added vertically.

  • "horizontal" - the legend items are added horizontally.

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,
        orientation: "horizontal"
    }
});
</script>
In this article
legend.orientation
Not finding the help you need?
Contact Support