data.nodes.colorString
The color of the node. Accepts a valid CSS color string, including hex and rgb.
Example
<div id="sankey" style="width: 500px; height: 200px;"></div>
<script>
$("#sankey").kendoSankey({
data: {
nodes: [
{ id: 1, label: { text: "Red Node" }, color: "#ff6358" },
{ id: 2, label: { text: "Blue Node" }, color: "#1f8ef1" }
],
links: [
{ sourceId: 1, targetId: 2, value: 10 }
]
}
});
</script>