API reference: @salmonui/charts/geo-map
GeoMapLabelsinterface
import type { GeoMapLabels } from '@salmonui/charts/geo-map';interface GeoMapLabels {
readonly field?: string | undefined;
readonly overflow?: 'none' | 'hide' | 'trim' | undefined;
readonly overlap?: 'hide' | 'show' | undefined;
readonly render?: ((ctx: {
readonly key: string;
readonly name: string;
readonly text: string;
readonly datum: unknown;
}) => unknown) | undefined;
}
| Name | Signature | Description |
|---|---|---|
fieldoptional | readonly field?: string | undefined; | Field of the joined data row or of the feature properties (default the shape name). |
overflowoptional | readonly overflow?: 'none' | 'hide' | 'trim' | undefined; |
|
overlapoptional | readonly overlap?: 'hide' | 'show' | undefined; |
|
renderoptional | readonly render?: ((ctx: {
readonly key: string;
readonly name: string;
readonly text: string;
readonly datum: unknown;
}) => unknown) | undefined; | Custom label content centered on the shape (replaces the text). |