itemCreated

Fired when a tile has been created.

Event Data

e.element jQuery|Element

The item html instance.

e.sender kendo.dataviz.ui.TreeMap

The source widget instance.

Example - Change color of the tile

<div id="treeMap"></div>
<script>
    $("#treeMap").kendoTreeMap({
        dataSource: {
            data: [{
                name: "foo",
                value: 1,
                color: "red"
            }]
        },
        valueField: "value",
        textField: "name",
        colorField: "color",
        itemCreated: function(e) {
            e.element.css("background-color", "blue");
        }
    });
</script>
In this article