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

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

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

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Accessing country descriptors from the map engine

typescript