API reference: @salmonui/charts/heat-map
HeatMapAxisinterface
import type { HeatMapAxis } from '@salmonui/charts/heat-map';interface HeatMapAxis {
readonly scale?: 'category' | 'linear' | 'time' | undefined;
readonly labels?: readonly string[] | undefined;
readonly min?: number | undefined;
readonly max?: number | undefined;
readonly interval?: number | undefined;
readonly format?: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | ((value: string) => string) | undefined;
readonly labelOverlap?: 'none' | 'hide' | 'trim' | 'wrap' | 'rotate45' | 'rotate90' | undefined;
readonly maxLabelWidth?: number | undefined;
readonly position?: 'bottom' | 'top' | 'start' | 'end' | undefined;
readonly reversed?: boolean | undefined;
readonly title?: string | undefined;
readonly labelGroups?: readonly HeatMapLabelGroup[] | undefined;
}
| Name | Signature | Description |
|---|---|---|
scaleoptional | readonly scale?: 'category' | 'linear' | 'time' | undefined; | How keys are ordered and formatted. Default |
labelsoptional | readonly labels?: readonly string[] | undefined; | Explicit category labels (table data), in order. |
minoptional | readonly min?: number | undefined; | Numeric / time axes: keep keys in [min, max]. |
maxoptional | readonly max?: number | undefined; | |
intervaloptional | readonly interval?: number | undefined; | Show every |
formatoptional | readonly format?: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | ((value: string) => string) | undefined; | Label format for numeric and time keys. |
labelOverlapoptional | readonly labelOverlap?: 'none' | 'hide' | 'trim' | 'wrap' | 'rotate45' | 'rotate90' | undefined; | |
maxLabelWidthoptional | readonly maxLabelWidth?: number | undefined; | |
positionoptional | readonly position?: 'bottom' | 'top' | 'start' | 'end' | undefined; | x: |
reversedoptional | readonly reversed?: boolean | undefined; | |
titleoptional | readonly title?: string | undefined; | |
labelGroupsoptional | readonly labelGroups?: readonly HeatMapLabelGroup[] | undefined; | Multi-level labels below (x) or beside (y) the axis labels. |