typeString(default: "squarified")

The layout type for the TreeMap.

The Supported values are:

  • squarified
  • horizontal
  • vertical

Example

<div id="treemap"></div>
<script>
$("#treemap").kendoTreeMap({
    dataSource: [
        { name: "Category A", value: 40 },
        { name: "Category B", value: 30 },
        { name: "Category C", value: 20 },
        { name: "Category D", value: 10 }
    ],
    type: "horizontal",
    valueField: "value",
    textField: "name"
});
</script>
In this article
type
Not finding the help you need?
Contact Support