data.links.colorTypeString

The color type of the link. The supported values are:

  • "static" - The link color is static. The color is determined by the link's color option.
  • "source" - The link color is the same as the source node color.
  • "target" - The link color is the same as the target node color.

Example

<div id="sankey" style="width: 500px; height: 200px;"></div>
<script>
    $("#sankey").kendoSankey({
        data: {
            nodes: [
                { id: 1, label: { text: "Node 1" }, color: "#ff6358" },
                { id: 2, label: { text: "Node 2" }, color: "#1f8ef1" }
            ],
            links: [
                { sourceId: 1, targetId: 2, value: 10, colorType: "source" }
            ]
        }
    });
</script>
In this article
data.links.colorType
Not finding the help you need?
Contact Support