IChartMapRouteDatum

interface
Chart

A single flight-route datum connecting two country centroids. Used in series[0].data when mode='flight-routes' on <OrigamChartMap>.

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.

from
required
string
ISO-3166-1 alpha-2 code for the route origin.
to
required
string
ISO-3166-1 alpha-2 code for the route destination.
value
number
Optional flow weight — drives the stroke width via Math.log(value + 1) * 1.5.
color
TIntent | string
Overrides the global lineColor prop for this specific route.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Flight routes between major hubs

typescript