tooltip.appendToString|Element(default: document.body)

The element to which the tooltip will be appended.

Example

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