Skip to content

Map of Tonga ​

Tonga, تونغا in Arabic. The map has 5 regions. The figures on it are made up: give yours with the codes below.

TopoJSON file

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 ​

CodeNameFrenchArabic
TO-02HaʻapaiHa'apaiهاباي
TO-01ʻEua'Euaإيوا
TO-03NiuasNiuasنيواس
TO-04TongatapuTongatapuتونغاتابو
TO-05VavaʻuVava'uفافاو

Source: Natural Earth, public domain. Shapes are simplified for the screen.