IChartMapProps

interface
Chart

Props for <OrigamChartMap>. Supports two modes: choropleth (country shapes coloured by interpolated value) and flight-routes (curved arcs between pairs of country centroids). Extends IChartBaseProps.

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.

typescript

Héritage

Hérite de

Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.

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.

mode
TChartMapMode
Rendering mode. Default 'choropleth'.
colorRange
[TIntent | string, TIntent | string]
Colour gradient endpoints for choropleth mode. First colour = min value; second colour = max value. Default ['info', 'danger'].
defaultCountryFill
TIntent | string
Fill colour for countries that have no value in the dataset. Default 'rgba(0,0,0,0.08)'.
borderColor
TIntent | string
Stroke colour applied to all country path outlines. Default 'rgba(0,0,0,0.2)'.
lineColor
TIntent | string
Default stroke colour for flight-route arcs. Overridden per route via IChartMapRouteDatum.color. Default 'primary'.
nodeRadius
number
Radius in SVG pixels of the endpoint circles on each route. Default 4.
routeCurvature
number
Bezier control-point offset as a fraction of the chord length [0..1]. 0 = straight line; 0.3 = gentle arc (default).
yAxisFormat
(value: number) => string
Y-axis value formatter used in tooltips and the choropleth legend.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

World choropleth by population density

vue