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

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

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

```ts
import type { TreeMapLevel } 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 TreeMapLevel {
    readonly groupBy?: string | ((datum: unknown) => string) | undefined;
    readonly gap?: number | undefined;
    readonly header?: boolean | TreeMapHeaderOptions | undefined;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `groupBy` | `readonly groupBy?: string \| ((datum: unknown) => string) \| undefined;` | optional | Group flat data by this field (or accessor). |
| `gap` | `readonly gap?: number \| undefined;` | optional | Gap between the groups of this level, px. Default 2. |
| `header` | `readonly header?: boolean \| TreeMapHeaderOptions \| undefined;` | optional | Header band with the group label. Default true. |
