API reference: @salmonui/charts/tree-map
TreeMapLevelinterface
import type { TreeMapLevel } from '@salmonui/charts/tree-map';interface TreeMapLevel {
readonly groupBy?: string | ((datum: unknown) => string) | undefined;
readonly gap?: number | undefined;
readonly header?: boolean | TreeMapHeaderOptions | undefined;
}
| Name | Signature | Description |
|---|---|---|
groupByoptional | readonly groupBy?: string | ((datum: unknown) => string) | undefined; | Group flat data by this field (or accessor). |
gapoptional | readonly gap?: number | undefined; | Gap between the groups of this level, px. Default 2. |
headeroptional | readonly header?: boolean | TreeMapHeaderOptions | undefined; | Header band with the group label. Default true. |