IChartMapRouteDatum
interface
Chart
A single flight-route datum connecting two country centroids. Used in series[0].data when mode='flight-routes' on <OrigamChartMap>.
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.
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.
- fromrequisstring
- ISO-3166-1 alpha-2 code for the route origin.
- torequisstring
- 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.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Flight routes between major hubs