Map of the continents
The map has 7 continents. 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("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
| Code | Name |
|---|---|
africa | Africa |
antarctica | Antarctica |
asia | Asia |
europe | Europe |
north-america | North America |
oceania | Oceania |
south-america | South America |
Source: Natural Earth, public domain. Shapes are simplified for the screen.