Map of Tonga
Tonga, تونغا in Arabic. The map has 5 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/to")',
projection: 'mercator',
values: { 'TO-02': 8, 'TO-01': 45, 'TO-03': 82, 'TO-04': 29 },
legend: true,
};
export default function Example() {
return <Chart spec={spec} style={{ height: 340 }} />;
}Regions and codes
| Code | Name | French | Arabic |
|---|---|---|---|
TO-02 | Haʻapai | Ha'apai | هاباي |
TO-01 | ʻEua | 'Eua | إيوا |
TO-03 | Niuas | Niuas | نيواس |
TO-04 | Tongatapu | Tongatapu | تونغاتابو |
TO-05 | Vavaʻu | Vava'u | فافاو |
Source: Natural Earth, public domain. Shapes are simplified for the screen.