links.colorTypeString(default: "static")
The color type of the links. The supported values are:
- "source" - the color of the link is determined by the source node.
- "static" - the color of the link is static.
- "target" - the color of the link is determined by the target node.
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 }
]
},
links: {
colorType: "source"
}
});
</script>