Map of Costa Rica
Costa Rica, كوستاريكا in Arabic. The map has 7 regions. The figures on it are made up: give yours with the codes below.
Put your figures on it
In your framework
import { Chart } from 'nervure/react';
const spec = {
type: 'map',
geo: 'await loadMap("countries/cr")',
projection: 'mercator',
values: { 'CR-A': 8, 'CR-C': 45, 'CR-G': 82, 'CR-H': 29 },
legend: true,
};
export default function Example() {
return <Chart spec={spec} style={{ height: 340 }} />;
}Regions and codes
| Code | Name | French | Arabic |
|---|---|---|---|
CR-A | Alajuela | Alajuela | الأخويلا |
CR-C | Cartago | Cartago | كارتاغو |
CR-G | Guanacaste | Guanacaste | غواناكاسته |
CR-H | Heredia | Heredia | إيريذيا |
CR-L | Limón | Limón | ليمون |
CR-P | Puntarenas | Puntarenas | بونتاريناس |
CR-SJ | San José | San José | محافظة سان خوسيه |
Source: Natural Earth, public domain. Shapes are simplified for the screen.