Map of South Africa
South Africa, Afrique du Sud in French, جنوب أفريقيا in Arabic. The map has 9 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/za")',
projection: 'mercator',
values: { 'ZA-EC': 8, 'ZA-FS': 45, 'ZA-GT': 82, 'ZA-NL': 29 },
legend: true,
};
export default function Example() {
return <Chart spec={spec} style={{ height: 340 }} />;
}Regions and codes
| Code | Name | French | Arabic |
|---|---|---|---|
ZA-EC | Eastern Cape | Cap-Oriental | كيب الشرقية |
ZA-FS | Free State | État libre | فري ستيت |
ZA-GT | Gauteng | Gauteng | خاوتينغ |
ZA-NL | KwaZulu-Natal | KwaZulu-Natal | كوازولو ناتال |
ZA-LP | Limpopo | Limpopo | ليمبوبو |
ZA-MP | Mpumalanga | Mpumalanga | مبومالانجا |
ZA-NW | North West | Nord-Ouest | الشمالية الغربية |
ZA-NC | Northern Cape | Cap-Nord | كيب الشمالية |
ZA-WC | Western Cape | Cap-Occidental | كيب الغربية |
Source: Natural Earth, public domain. Shapes are simplified for the screen.