legend.item.areaBackgroundString
The background color of the legend item square element. Accepts a valid CSS color string, including HEX and RGB. Defaults to the corresponding node color.
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,
item: {
areaBackground: "#ff6358"
}
}
});
</script>
In this article