legend.title.backgroundString(default: "white")

The background color of the title. Accepts a valid CSS color string, including hex and rgb.

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: "Legend Title",
            background: "#f0f0f0"
        }
    }
});
</script>
In this article
legend.title.background
Not finding the help you need?
Contact Support