legend.widthNumber

The legend width when the legend.orientation is set to "horizontal".

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