legend.item.areaOpacityNumber

The opacity of the legend item square element. Defaults to the corresponding node opacity.

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,
        item: {
            areaOpacity: 0.5
        }
    }
});
</script>
In this article
legend.item.areaOpacity
Not finding the help you need?
Contact Support