API reference: @salmonui/charts/tree-map
TreeMapIteminterface
import type { TreeMapItem } from '@salmonui/charts/tree-map';interface TreeMapItem {
readonly path: TreeMapPath;
readonly label: string;
readonly value: number;
readonly depth: number;
readonly leaf: boolean;
readonly datum: unknown;
readonly color: string;
}
| Name | Signature | 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 |
color | readonly color: string; |