I am creating a tree-map. Treemap is static. It will always have 3 tiles. The data can change but the number of tiles will remain fixed. I looked at the below example.
How can I force each tile to have a unique color from the array of colors I have specified.
<div id="treemap"></div>
<script>
$("#treemap").kendoTreeMap({
dataSource: {
data: [{
name: "Root",
items: [{ name: "foo", value: 1 }, { name: "bar", value: 2 }, { name: "baz", value: 3 }]
}]
},
valueField: "value",
textField: "name",
colors: ["red", "green", "yellow"]
});
</script>