legend.paddingNumber|Object(default: 5)

The padding of the Sankey legend. A numeric value will set all paddings.

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