legend.reverseBoolean(default: false)
If set to true the legend items will be reversed.
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,
reverse: true
}
});
</script>
In this article