IChartMapCountry

interface
Chart

Internal country descriptor produced by the map geometry engine. Holds the pre-resolved fill colour, ARIA metadata, and SVG path string for rendering a country shape.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

code
requis
string
ISO-3166-1 alpha-2 country code.
d
requis
string
SVG <path d="…"> string from WORLD_MAP_PATHS.
fill
requis
string
Resolved CSS fill colour string.
value
requis
number | undefined
Raw numeric value (undefined for countries not in the dataset).
name
requis
string
Display name (from datum or code fallback).
hasData
requis
boolean
Whether this country has data in the current series.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Accessing country descriptors from the map engine

typescript