# TreeMapItem (@salmonui/charts/tree-map)

> The TreeMapItem interface of @salmonui/charts/tree-map.

Canonical: https://salmonui.dev/docs/reference/charts/tree-map/TreeMapItem

```ts
import type { TreeMapItem } from '@salmonui/charts/tree-map';
```

Entry index: https://salmonui.dev/docs/reference/charts/tree-map (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/charts/tree-map.md).

## Reference

Kind: interface

```ts
interface TreeMapItem {
    readonly path: TreeMapPath;
    readonly label: string;
    readonly value: number;
    readonly depth: number;
    readonly leaf: boolean;
    readonly datum: unknown;
    readonly color: string;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `path` | `readonly path: TreeMapPath;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `value` | `readonly value: number;` |  |  |
| `depth` | `readonly depth: number;` |  | Depth below the root (1 = top level). |
| `leaf` | `readonly leaf: boolean;` |  |  |
| `datum` | `readonly datum: unknown;` |  | The record for leaves and hierarchical groups; null for groups built by `levels`. |
| `color` | `readonly color: string;` |  |  |
