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

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

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

```ts
import type { TreeMapColorScale } 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 TreeMapColorScale {
    readonly kind: 'range' | 'value' | 'opacity';
    readonly field?: string | undefined;
    readonly stops: readonly TreeMapColorStop[];
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `kind` | `readonly kind: 'range' \| 'value' \| 'opacity';` |  |  |
| `field` | `readonly field?: string \| undefined;` | optional | Record field the scale reads; default the weight. |
| `stops` | `readonly stops: readonly TreeMapColorStop[];` |  |  |
