IChartMapChoroplethDatum

interface
Chart

A single choropleth data point keyed by ISO-3166-1 alpha-2 country code. The numeric value drives the colour interpolation between colorRange endpoints.

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 (e.g. 'FR', 'US').
value
required
number
Numeric value used to drive the colour interpolation between colorRange endpoints.
name
string
Human-readable label. Defaults to code when omitted.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Choropleth data for European countries

typescript