legend.title.textString

The text of the legend title. You can also set the text directly for a title with default options.

The text can be split into multiple lines by using line feed characters ("\n").

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,
        title: {
            text: "Energy Sources\nLegend"
        }
    }
});
</script>
In this article
legend.title.text
Not finding the help you need?
Contact Support