New to Kendo UI for jQueryStart a free 30-day trial

Messages

configuration

The configuration of the messages displayed in the Sankey.

messages

Object
<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 }
        ]
    },
    messages: {
        tooltipUnits: "({0} MW)"
    }
});
</script>

The units string displayed in the tooltip.

Default: "({0} Units)"

<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 }
        ]
    },
    messages: {
        tooltipUnits: "({0} MW)"
    }
});
</script>
In this article
messagesmessages.tooltipUnits
Not finding the help you need?
Contact Support