View as Markdown

API reference: @salmonui/charts/geo-map

GeoMapColorStopinterface

import type { GeoMapColorStop } from '@salmonui/charts/geo-map';
interface GeoMapColorStop {
    readonly from?: number | undefined;
    readonly to?: number | undefined;
    readonly value?: unknown;
    readonly color?: string | undefined;
    readonly opacity?: number | undefined;
    readonly label?: string | undefined;
}
GeoMapColorStop members (6)
NameSignatureDescription
fromoptionalreadonly from?: number | undefined;

Range stops: from (inclusive) and to (exclusive, the last one inclusive).

tooptionalreadonly to?: number | undefined;
valueoptionalreadonly value?: unknown;

Value stops: equality with the field value.

coloroptionalreadonly color?: string | undefined;

Data color. Opacity scales use opacity with the scale color.

opacityoptionalreadonly opacity?: number | undefined;
labeloptionalreadonly label?: string | undefined;

Legend text (default the range or value).