Skip to content

Map of the continents ​

The map has 7 continents. 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("continents")',
  projection: 'naturalEarth',
  values: { africa: 8, antarctica: 45, asia: 82, europe: 29 },
  legend: true,
};

export default function Example() {
  return <Chart spec={spec} style={{ height: 340 }} />;
}

Places and codes ​

CodeName
africaAfrica
antarcticaAntarctica
asiaAsia
europeEurope
north-americaNorth America
oceaniaOceania
south-americaSouth America

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