---
title: Treemap
styles: [scientific]
---

```chart
type: treemap
title: Engineering is the largest group, then sales
subtitle: Thousands of dollars; area is budget, colour is the top-level group
data:
  inline:
    - {part: Engineering}
    - {part: Platform, group: Engineering, budget: 420}
    - {part: Product, group: Engineering, budget: 310}
    - {part: Sales}
    - {part: EMEA, group: Sales, budget: 240}
    - {part: Americas, group: Sales, budget: 260}
    - {part: Operations, budget: 180}
    - {part: People, budget: 90}
encoding: {label: part, parent: group, y: budget}
axes:
  y: {unit: k}
```
