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.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- fromrequiredstring
- ISO-3166-1 alpha-2 code for the route origin.
- torequiredstring
- ISO-3166-1 alpha-2 code for the route destination.
- valuenumber
- Optional flow weight — drives the stroke width via Math.log(value + 1) * 1.5.
- colorTIntent | 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