qvac-charts 0.1.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -5
- package/dist-lib/index.d.ts +3 -1
- package/dist-lib/index.js +2 -2
- package/dist-lib/lib/charts/index.js +2 -3
- package/dist-lib/lib/charts/maps.d.ts +0 -1
- package/dist-lib/lib/charts/maps.js +24 -81
- package/dist-lib/lib/colors.d.ts +11 -0
- package/dist-lib/lib/colors.js +205 -0
- package/dist-lib/lib/maps/continents/africa.d.ts +82 -0
- package/dist-lib/lib/maps/continents/africa.js +1 -0
- package/dist-lib/lib/maps/continents/asia.d.ts +86 -0
- package/dist-lib/lib/maps/continents/asia.js +1 -0
- package/dist-lib/lib/maps/continents/europe.d.ts +69 -0
- package/dist-lib/lib/maps/continents/europe.js +1 -0
- package/dist-lib/lib/maps/continents/index.d.ts +3 -0
- package/dist-lib/lib/maps/continents/index.js +9 -0
- package/dist-lib/lib/maps/continents/north-america.d.ts +52 -0
- package/dist-lib/lib/maps/continents/north-america.js +1 -0
- package/dist-lib/lib/maps/continents/oceania.d.ts +38 -0
- package/dist-lib/lib/maps/continents/oceania.js +1 -0
- package/dist-lib/lib/maps/continents/south-america.d.ts +32 -0
- package/dist-lib/lib/maps/continents/south-america.js +1 -0
- package/dist-lib/lib/normalize.js +11 -8
- package/dist-lib/lib/pick.js +2 -5
- package/dist-lib/lib/places.d.ts +11 -16
- package/dist-lib/lib/places.js +21 -31
- package/dist-lib/lib/render.d.ts +3 -2
- package/dist-lib/lib/render.js +3 -2
- package/dist-lib/lib/spec.d.ts +1 -1
- package/dist-lib/lib/themes.d.ts +5 -0
- package/dist-lib/lib/themes.js +1 -1
- package/dist-lib/maps.d.ts +4 -2
- package/dist-lib/maps.js +18 -5
- package/package.json +4 -1
- package/dist-lib/lib/maps/brazil.d.ts +0 -2
- package/dist-lib/lib/maps/brazil.js +0 -29
package/README.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Renders a small JSON chart spec, written by a local model, into an SVG in an editorial style. No runtime dependencies; runs on Bare and Node.
|
|
4
4
|
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install qvac-charts
|
|
9
|
+
```
|
|
10
|
+
|
|
5
11
|
## Usage
|
|
6
12
|
|
|
7
13
|
```js
|
|
@@ -29,7 +35,7 @@ chart.summary // 'Ranked bar, 3 items, highlight USDT, $187B'
|
|
|
29
35
|
chart.toSVG({ theme: 'light' }) // a 1080×1350 SVG string
|
|
30
36
|
```
|
|
31
37
|
|
|
32
|
-
`summary` is one line a model can talk about the chart from, without seeing it. The model describes the data; the package picks the chart, does the arithmetic and draws it. There are
|
|
38
|
+
`summary` is one line a model can talk about the chart from, without seeing it. The model describes the data; the package picks the chart, does the arithmetic and draws it. There are 13 chart types, including a choropleth and a bubble map of the world or of one continent.
|
|
33
39
|
|
|
34
40
|
A spec takes at most 30 items, the bound in `Chart.schema`; `Chart.from` throws a `RangeError` past it, or when no value is a finite number. Values that are not finite, such as `1e400` read from JSON, are dropped.
|
|
35
41
|
|
|
@@ -41,18 +47,32 @@ The package ships no logo. A host that wants its mark in the footer passes it to
|
|
|
41
47
|
chart.toSVG({ theme: 'dark', mark: { href: 'data:image/png;base64,…', width: 110, height: 48 } })
|
|
42
48
|
```
|
|
43
49
|
|
|
50
|
+
### Colors
|
|
51
|
+
|
|
52
|
+
`toSVG` takes an `accent` and a `palette` that replace the theme's. The accent colors the highlighted item, the callout and the deep end of a map's shading; the palette colors the other items or series, in order, and repeats when there are more of them than colors. An accent given alone leaves the theme's palette in place.
|
|
53
|
+
|
|
54
|
+
```js
|
|
55
|
+
chart.toSVG({ theme: 'light', accent: 'blue' })
|
|
56
|
+
chart.toSVG({ theme: 'dark', accent: '#1d4ed8', palette: ['teal', 'tomato', 'gold'] })
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
A color is a CSS color name, read loosely (`'Light Blue'` is `lightblue`), or a 3- or 6-digit hex, with or without `#`, so a model can pass on what the user said. Anything else, and a palette that is empty or longer than 12, throws a `RangeError`. A color too close to the theme's background to read against it is darkened on the light theme and lightened on the dark one until it reaches a 3:1 contrast ratio. Without colors the chart is drawn exactly as before.
|
|
60
|
+
|
|
44
61
|
### Maps
|
|
45
62
|
|
|
46
|
-
The map data is its own entry, so a host that draws no maps does not load it (about 120 KB):
|
|
63
|
+
The map data is its own entry, so a host that draws no maps does not load it. `mapsFor` takes the places a spec names and returns the world (about 120 KB) with the one continent that holds them (8 to 43 KB), loaded on demand:
|
|
47
64
|
|
|
48
65
|
```js
|
|
49
66
|
import { Chart } from 'qvac-charts'
|
|
50
|
-
import {
|
|
67
|
+
import { mapsFor } from 'qvac-charts/maps'
|
|
51
68
|
|
|
52
|
-
const
|
|
69
|
+
const maps = await mapsFor(spec.data.map((d) => d.label))
|
|
70
|
+
const chart = Chart.from(spec, { maps }) // shape 'places' becomes a choropleth or, with variant 'bubbles', a bubble map
|
|
53
71
|
```
|
|
54
72
|
|
|
55
|
-
Without `maps`, a spec with `shape: 'places'` is drawn as a ranking of its places.
|
|
73
|
+
When every place is on one continent (Africa, Asia, Europe, North America, Oceania or South America) the chart draws that continent, closer; otherwise it draws the world. Names match in English, Portuguese, Spanish, French, German and Italian, and by ISO code. Without `maps`, or when no place is a country, a spec with `shape: 'places'` is drawn as a ranking of its places.
|
|
74
|
+
|
|
75
|
+
`npm run build:continents` regenerates the continent maps from a pinned Natural Earth release, checked by its hash.
|
|
56
76
|
|
|
57
77
|
## Development
|
|
58
78
|
|
package/dist-lib/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export interface ChartOptions {
|
|
|
9
9
|
export interface SVGOptions {
|
|
10
10
|
theme?: ThemeName;
|
|
11
11
|
mark?: Mark;
|
|
12
|
+
accent?: string;
|
|
13
|
+
palette?: ReadonlyArray<string>;
|
|
12
14
|
}
|
|
13
15
|
export declare class Chart {
|
|
14
16
|
static schema: {
|
|
@@ -96,5 +98,5 @@ export declare class Chart {
|
|
|
96
98
|
readonly summary: string;
|
|
97
99
|
private normalized;
|
|
98
100
|
private constructor();
|
|
99
|
-
toSVG({ theme, mark }?: SVGOptions): string;
|
|
101
|
+
toSVG({ theme, mark, accent, palette }?: SVGOptions): string;
|
|
100
102
|
}
|
package/dist-lib/index.js
CHANGED
|
@@ -15,8 +15,8 @@ export class Chart {
|
|
|
15
15
|
this.type = normalized.type;
|
|
16
16
|
this.summary = summarize(normalized);
|
|
17
17
|
}
|
|
18
|
-
toSVG({ theme = 'dark', mark } = {}) {
|
|
19
|
-
return render(this.normalized, { theme, mark });
|
|
18
|
+
toSVG({ theme = 'dark', mark, accent, palette } = {}) {
|
|
19
|
+
return render(this.normalized, { theme, mark, accent, palette });
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
function summarize(chart) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bubbleMap, choropleth
|
|
1
|
+
import { bubbleMap, choropleth } from './maps.js';
|
|
2
2
|
import { bubbles, donut, stacked, treemap, waffle } from './parts.js';
|
|
3
3
|
import { radial, rankedBar } from './ranking.js';
|
|
4
4
|
import { slope } from './slope.js';
|
|
@@ -16,6 +16,5 @@ export const charts = {
|
|
|
16
16
|
'multi-line': multiLine,
|
|
17
17
|
slope,
|
|
18
18
|
choropleth,
|
|
19
|
-
'bubble-map': bubbleMap
|
|
20
|
-
tiles
|
|
19
|
+
'bubble-map': bubbleMap
|
|
21
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { callout, W } from '../frame.js';
|
|
2
2
|
import { ceiling } from '../geometry.js';
|
|
3
|
-
import {
|
|
3
|
+
import { geoMap } from '../places.js';
|
|
4
4
|
import { halo, text } from '../svg.js';
|
|
5
5
|
import { contrast, ramp } from '../themes.js';
|
|
6
6
|
const byValue = (data) => [...data].sort((a, c) => c.value - a.value);
|
|
@@ -8,7 +8,13 @@ function atlas(spec) {
|
|
|
8
8
|
if (!spec.maps) {
|
|
9
9
|
throw new Error(`${spec.type} needs the map data from qvac-charts/maps`);
|
|
10
10
|
}
|
|
11
|
-
return spec.maps;
|
|
11
|
+
return geoMap(spec.maps, spec.map);
|
|
12
|
+
}
|
|
13
|
+
const MAP_SHARE = 0.62;
|
|
14
|
+
function fitted({ spec, b }) {
|
|
15
|
+
const map = atlas(spec);
|
|
16
|
+
const k = Math.min(b.w / map.width, (b.h * MAP_SHARE) / map.height);
|
|
17
|
+
return { k, x: b.x + (b.w - map.width * k) / 2, y: b.y };
|
|
12
18
|
}
|
|
13
19
|
export function choropleth(d) {
|
|
14
20
|
const { spec, t, b } = d;
|
|
@@ -26,17 +32,17 @@ export function choropleth(d) {
|
|
|
26
32
|
export function bubbleMap(d) {
|
|
27
33
|
const { out, spec, t, b } = d;
|
|
28
34
|
const y = world(d, () => t.faint);
|
|
29
|
-
const k
|
|
35
|
+
const { k, x: ox, y: oy } = fitted(d);
|
|
30
36
|
const top = byValue(spec.data);
|
|
31
37
|
const max = ceiling(top.map((r) => r.value));
|
|
32
38
|
for (const row of top) {
|
|
33
|
-
const r = atlas(spec).
|
|
39
|
+
const r = atlas(spec).regions.find((x) => x.name === row.label);
|
|
34
40
|
if (!r) {
|
|
35
41
|
continue;
|
|
36
42
|
}
|
|
37
43
|
const radius = Math.max(5, Math.sqrt(row.value / max) * 64);
|
|
38
44
|
const on = row.label === spec.highlight;
|
|
39
|
-
out.push(`<circle cx="${
|
|
45
|
+
out.push(`<circle cx="${ox + r.cx * k}" cy="${oy + r.cy * k}" r="${radius}" fill="${on ? t.accent : t.palette[2]}" fill-opacity="0.82" stroke="${t.bg}" stroke-width="2"/>`);
|
|
40
46
|
}
|
|
41
47
|
mapLabels(d, top.slice(0, 5).concat(top.filter((x) => x.label === spec.highlight)));
|
|
42
48
|
placeList(d, {
|
|
@@ -45,97 +51,34 @@ export function bubbleMap(d) {
|
|
|
45
51
|
paint: (row) => (row.label === spec.highlight ? t.accent : t.palette[2])
|
|
46
52
|
});
|
|
47
53
|
}
|
|
48
|
-
|
|
49
|
-
const { out, spec, t
|
|
50
|
-
const
|
|
51
|
-
const regions = atlas(spec).tiles[spec.map];
|
|
52
|
-
const cols = Math.max(...regions.map((r) => r.col)) + 1;
|
|
53
|
-
const rows = Math.max(...regions.map((r) => r.row)) + 1;
|
|
54
|
-
const side = Math.min(b.h / rows, (b.w * 0.62) / cols);
|
|
55
|
-
const gap = side * 0.06;
|
|
56
|
-
const byCode = new Map(spec.data.map((x) => [x.region, x]));
|
|
57
|
-
for (const r of regions) {
|
|
58
|
-
const row = byCode.get(r.code);
|
|
59
|
-
const x = b.x + r.col * side;
|
|
60
|
-
const y = b.y + r.row * side;
|
|
61
|
-
const fill = row ? shading.shade(row.value) : t.faint;
|
|
62
|
-
const on = row && row.label === spec.highlight;
|
|
63
|
-
const ink = row ? contrast(fill, t) : t.muted;
|
|
64
|
-
out.push(`<rect x="${x + gap / 2}" y="${y + gap / 2}" width="${side - gap}" height="${side - gap}" rx="${side * 0.1}" fill="${fill}"${on ? ` stroke="${t.text}" stroke-width="5"` : ''}/>`);
|
|
65
|
-
out.push(text(r.code, {
|
|
66
|
-
x: x + side / 2,
|
|
67
|
-
y: y + side * (row ? 0.45 : 0.58),
|
|
68
|
-
size: side * 0.3,
|
|
69
|
-
weight: 800,
|
|
70
|
-
fill: ink,
|
|
71
|
-
anchor: 'middle'
|
|
72
|
-
}));
|
|
73
|
-
if (row) {
|
|
74
|
-
out.push(text(fmt(row.value, Math.min(spec.decimals, 1)), {
|
|
75
|
-
x: x + side / 2,
|
|
76
|
-
y: y + side * 0.76,
|
|
77
|
-
size: side * 0.19,
|
|
78
|
-
weight: 600,
|
|
79
|
-
fill: ink,
|
|
80
|
-
anchor: 'middle'
|
|
81
|
-
}));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
const rx = b.x + cols * side + 48;
|
|
85
|
-
const rw = b.x + b.w - rx;
|
|
86
|
-
legend(d, { x: rx, y: b.y + 10, ramp: shading, w: rw });
|
|
87
|
-
ranking(d, { x: rx, y: b.y, w: rw });
|
|
88
|
-
callout(d, { x: rx, y: b.y + b.h - 150, w: rw });
|
|
89
|
-
}
|
|
90
|
-
function ranking({ out, spec, t, fmt }, { x, y: top, w }) {
|
|
91
|
-
const rows = byValue(spec.data).slice(0, spec.callout ? 5 : 8);
|
|
92
|
-
rows.forEach((row, i) => {
|
|
93
|
-
const y = top + 150 + i * 62;
|
|
94
|
-
const on = row.label === spec.highlight;
|
|
95
|
-
out.push(text(`${i + 1}. ${row.region ?? row.label}`, {
|
|
96
|
-
x,
|
|
97
|
-
y,
|
|
98
|
-
size: 26,
|
|
99
|
-
weight: 800,
|
|
100
|
-
fill: on ? t.accent : t.text
|
|
101
|
-
}));
|
|
102
|
-
out.push(text(fmt(row.value), {
|
|
103
|
-
x: x + w,
|
|
104
|
-
y,
|
|
105
|
-
size: 26,
|
|
106
|
-
weight: 700,
|
|
107
|
-
fill: on ? t.accent : t.text,
|
|
108
|
-
anchor: 'end'
|
|
109
|
-
}));
|
|
110
|
-
out.push(text(row.label, { x, y: y + 26, size: 18, fill: t.muted }));
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
function world({ out, spec, t, b }, fill) {
|
|
114
|
-
const k = b.w / atlas(spec).world.width;
|
|
54
|
+
function world(d, fill) {
|
|
55
|
+
const { out, spec, t } = d;
|
|
56
|
+
const { k, x, y } = fitted(d);
|
|
115
57
|
const byName = new Map(spec.data.map((row) => [row.label, row]));
|
|
116
58
|
const lit = (r) => {
|
|
117
59
|
const row = byName.get(r.name);
|
|
118
60
|
return row !== undefined && row.label === spec.highlight;
|
|
119
61
|
};
|
|
120
|
-
const regions = atlas(spec).
|
|
62
|
+
const regions = atlas(spec).regions;
|
|
121
63
|
const shapes = [...regions.filter((r) => !lit(r)), ...regions.filter(lit)].map((r) => {
|
|
122
64
|
const row = byName.get(r.name);
|
|
123
65
|
const on = row && row.label === spec.highlight;
|
|
124
66
|
return `<path d="${r.d}" fill="${fill(row)}" stroke="${on ? t.text : t.bg}" stroke-width="${(on ? 2.5 : 0.6) / k}"/>`;
|
|
125
67
|
});
|
|
126
|
-
out.push(`<g transform="translate(${
|
|
127
|
-
return
|
|
68
|
+
out.push(`<g transform="translate(${x},${y}) scale(${k})">${shapes.join('')}</g>`);
|
|
69
|
+
return y + atlas(spec).height * k;
|
|
128
70
|
}
|
|
129
|
-
function mapLabels(
|
|
130
|
-
const
|
|
71
|
+
function mapLabels(d, items) {
|
|
72
|
+
const { out, spec, t, fmt } = d;
|
|
73
|
+
const { k, x: ox, y: oy } = fitted(d);
|
|
131
74
|
const placed = [];
|
|
132
75
|
for (const row of new Set(items)) {
|
|
133
|
-
const r = atlas(spec).
|
|
76
|
+
const r = atlas(spec).regions.find((x) => x.name === row.label);
|
|
134
77
|
if (!r) {
|
|
135
78
|
continue;
|
|
136
79
|
}
|
|
137
|
-
const x =
|
|
138
|
-
const y =
|
|
80
|
+
const x = ox + r.cx * k;
|
|
81
|
+
const y = oy + r.cy * k;
|
|
139
82
|
if (placed.some((p) => Math.abs(p.x - x) < 90 && Math.abs(p.y - y) < 30)) {
|
|
140
83
|
continue;
|
|
141
84
|
}
|
|
@@ -158,7 +101,7 @@ function legend({ out, spec, t, fmt }, { x, y, ramp: { shade, lo, hi }, w = 360
|
|
|
158
101
|
out.push(`<rect x="${x}" y="${y}" width="${w}" height="18" rx="9" fill="url(#${id})"/>`);
|
|
159
102
|
out.push(text(fmt(lo), { x, y: y + 50, size: 22, weight: 700, fill: t.muted }));
|
|
160
103
|
out.push(text(fmt(hi), { x: x + w, y: y + 50, size: 22, weight: 700, fill: t.muted, anchor: 'end' }));
|
|
161
|
-
if (spec.data.length >=
|
|
104
|
+
if (spec.data.length >= atlas(spec).regions.length) {
|
|
162
105
|
return;
|
|
163
106
|
}
|
|
164
107
|
const [nx, ny] = x + w + 200 < W ? [x + w + 40, y] : [x, y + 78];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type Theme } from './themes.ts';
|
|
2
|
+
export declare const MAX_PALETTE = 12;
|
|
3
|
+
export declare const MIN_CONTRAST = 3;
|
|
4
|
+
export interface Overrides {
|
|
5
|
+
accent?: string | undefined;
|
|
6
|
+
palette?: ReadonlyArray<string> | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare function parseColor(input: unknown): string;
|
|
9
|
+
export declare function contrastRatio(a: string, b: string): number;
|
|
10
|
+
export declare function readable(color: string, bg: string): string;
|
|
11
|
+
export declare function withColors(t: Theme, { accent, palette }: Overrides): Theme;
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { mix } from './themes.js';
|
|
2
|
+
const named = {
|
|
3
|
+
aliceblue: '#f0f8ff',
|
|
4
|
+
antiquewhite: '#faebd7',
|
|
5
|
+
aqua: '#00ffff',
|
|
6
|
+
aquamarine: '#7fffd4',
|
|
7
|
+
azure: '#f0ffff',
|
|
8
|
+
beige: '#f5f5dc',
|
|
9
|
+
bisque: '#ffe4c4',
|
|
10
|
+
black: '#000000',
|
|
11
|
+
blanchedalmond: '#ffebcd',
|
|
12
|
+
blue: '#0000ff',
|
|
13
|
+
blueviolet: '#8a2be2',
|
|
14
|
+
brown: '#a52a2a',
|
|
15
|
+
burlywood: '#deb887',
|
|
16
|
+
cadetblue: '#5f9ea0',
|
|
17
|
+
chartreuse: '#7fff00',
|
|
18
|
+
chocolate: '#d2691e',
|
|
19
|
+
coral: '#ff7f50',
|
|
20
|
+
cornflowerblue: '#6495ed',
|
|
21
|
+
cornsilk: '#fff8dc',
|
|
22
|
+
crimson: '#dc143c',
|
|
23
|
+
cyan: '#00ffff',
|
|
24
|
+
darkblue: '#00008b',
|
|
25
|
+
darkcyan: '#008b8b',
|
|
26
|
+
darkgoldenrod: '#b8860b',
|
|
27
|
+
darkgray: '#a9a9a9',
|
|
28
|
+
darkgreen: '#006400',
|
|
29
|
+
darkgrey: '#a9a9a9',
|
|
30
|
+
darkkhaki: '#bdb76b',
|
|
31
|
+
darkmagenta: '#8b008b',
|
|
32
|
+
darkolivegreen: '#556b2f',
|
|
33
|
+
darkorange: '#ff8c00',
|
|
34
|
+
darkorchid: '#9932cc',
|
|
35
|
+
darkred: '#8b0000',
|
|
36
|
+
darksalmon: '#e9967a',
|
|
37
|
+
darkseagreen: '#8fbc8f',
|
|
38
|
+
darkslateblue: '#483d8b',
|
|
39
|
+
darkslategray: '#2f4f4f',
|
|
40
|
+
darkslategrey: '#2f4f4f',
|
|
41
|
+
darkturquoise: '#00ced1',
|
|
42
|
+
darkviolet: '#9400d3',
|
|
43
|
+
deeppink: '#ff1493',
|
|
44
|
+
deepskyblue: '#00bfff',
|
|
45
|
+
dimgray: '#696969',
|
|
46
|
+
dimgrey: '#696969',
|
|
47
|
+
dodgerblue: '#1e90ff',
|
|
48
|
+
firebrick: '#b22222',
|
|
49
|
+
floralwhite: '#fffaf0',
|
|
50
|
+
forestgreen: '#228b22',
|
|
51
|
+
fuchsia: '#ff00ff',
|
|
52
|
+
gainsboro: '#dcdcdc',
|
|
53
|
+
ghostwhite: '#f8f8ff',
|
|
54
|
+
gold: '#ffd700',
|
|
55
|
+
goldenrod: '#daa520',
|
|
56
|
+
gray: '#808080',
|
|
57
|
+
green: '#008000',
|
|
58
|
+
greenyellow: '#adff2f',
|
|
59
|
+
grey: '#808080',
|
|
60
|
+
honeydew: '#f0fff0',
|
|
61
|
+
hotpink: '#ff69b4',
|
|
62
|
+
indianred: '#cd5c5c',
|
|
63
|
+
indigo: '#4b0082',
|
|
64
|
+
ivory: '#fffff0',
|
|
65
|
+
khaki: '#f0e68c',
|
|
66
|
+
lavender: '#e6e6fa',
|
|
67
|
+
lavenderblush: '#fff0f5',
|
|
68
|
+
lawngreen: '#7cfc00',
|
|
69
|
+
lemonchiffon: '#fffacd',
|
|
70
|
+
lightblue: '#add8e6',
|
|
71
|
+
lightcoral: '#f08080',
|
|
72
|
+
lightcyan: '#e0ffff',
|
|
73
|
+
lightgoldenrodyellow: '#fafad2',
|
|
74
|
+
lightgray: '#d3d3d3',
|
|
75
|
+
lightgreen: '#90ee90',
|
|
76
|
+
lightgrey: '#d3d3d3',
|
|
77
|
+
lightpink: '#ffb6c1',
|
|
78
|
+
lightsalmon: '#ffa07a',
|
|
79
|
+
lightseagreen: '#20b2aa',
|
|
80
|
+
lightskyblue: '#87cefa',
|
|
81
|
+
lightslategray: '#778899',
|
|
82
|
+
lightslategrey: '#778899',
|
|
83
|
+
lightsteelblue: '#b0c4de',
|
|
84
|
+
lightyellow: '#ffffe0',
|
|
85
|
+
lime: '#00ff00',
|
|
86
|
+
limegreen: '#32cd32',
|
|
87
|
+
linen: '#faf0e6',
|
|
88
|
+
magenta: '#ff00ff',
|
|
89
|
+
maroon: '#800000',
|
|
90
|
+
mediumaquamarine: '#66cdaa',
|
|
91
|
+
mediumblue: '#0000cd',
|
|
92
|
+
mediumorchid: '#ba55d3',
|
|
93
|
+
mediumpurple: '#9370db',
|
|
94
|
+
mediumseagreen: '#3cb371',
|
|
95
|
+
mediumslateblue: '#7b68ee',
|
|
96
|
+
mediumspringgreen: '#00fa9a',
|
|
97
|
+
mediumturquoise: '#48d1cc',
|
|
98
|
+
mediumvioletred: '#c71585',
|
|
99
|
+
midnightblue: '#191970',
|
|
100
|
+
mintcream: '#f5fffa',
|
|
101
|
+
mistyrose: '#ffe4e1',
|
|
102
|
+
moccasin: '#ffe4b5',
|
|
103
|
+
navajowhite: '#ffdead',
|
|
104
|
+
navy: '#000080',
|
|
105
|
+
oldlace: '#fdf5e6',
|
|
106
|
+
olive: '#808000',
|
|
107
|
+
olivedrab: '#6b8e23',
|
|
108
|
+
orange: '#ffa500',
|
|
109
|
+
orangered: '#ff4500',
|
|
110
|
+
orchid: '#da70d6',
|
|
111
|
+
palegoldenrod: '#eee8aa',
|
|
112
|
+
palegreen: '#98fb98',
|
|
113
|
+
paleturquoise: '#afeeee',
|
|
114
|
+
palevioletred: '#db7093',
|
|
115
|
+
papayawhip: '#ffefd5',
|
|
116
|
+
peachpuff: '#ffdab9',
|
|
117
|
+
peru: '#cd853f',
|
|
118
|
+
pink: '#ffc0cb',
|
|
119
|
+
plum: '#dda0dd',
|
|
120
|
+
powderblue: '#b0e0e6',
|
|
121
|
+
purple: '#800080',
|
|
122
|
+
rebeccapurple: '#663399',
|
|
123
|
+
red: '#ff0000',
|
|
124
|
+
rosybrown: '#bc8f8f',
|
|
125
|
+
royalblue: '#4169e1',
|
|
126
|
+
saddlebrown: '#8b4513',
|
|
127
|
+
salmon: '#fa8072',
|
|
128
|
+
sandybrown: '#f4a460',
|
|
129
|
+
seagreen: '#2e8b57',
|
|
130
|
+
seashell: '#fff5ee',
|
|
131
|
+
sienna: '#a0522d',
|
|
132
|
+
silver: '#c0c0c0',
|
|
133
|
+
skyblue: '#87ceeb',
|
|
134
|
+
slateblue: '#6a5acd',
|
|
135
|
+
slategray: '#708090',
|
|
136
|
+
slategrey: '#708090',
|
|
137
|
+
snow: '#fffafa',
|
|
138
|
+
springgreen: '#00ff7f',
|
|
139
|
+
steelblue: '#4682b4',
|
|
140
|
+
tan: '#d2b48c',
|
|
141
|
+
teal: '#008080',
|
|
142
|
+
thistle: '#d8bfd8',
|
|
143
|
+
tomato: '#ff6347',
|
|
144
|
+
turquoise: '#40e0d0',
|
|
145
|
+
violet: '#ee82ee',
|
|
146
|
+
wheat: '#f5deb3',
|
|
147
|
+
white: '#ffffff',
|
|
148
|
+
whitesmoke: '#f5f5f5',
|
|
149
|
+
yellow: '#ffff00',
|
|
150
|
+
yellowgreen: '#9acd32'
|
|
151
|
+
};
|
|
152
|
+
export const MAX_PALETTE = 12;
|
|
153
|
+
export const MIN_CONTRAST = 3;
|
|
154
|
+
export function parseColor(input) {
|
|
155
|
+
if (typeof input !== 'string') {
|
|
156
|
+
throw new RangeError(`A color is a name such as "blue" or a #hex such as "#1d4ed8", not ${typeof input}`);
|
|
157
|
+
}
|
|
158
|
+
const key = input
|
|
159
|
+
.trim()
|
|
160
|
+
.toLowerCase()
|
|
161
|
+
.replace(/[\s_-]+/g, '');
|
|
162
|
+
const digits = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/.exec(key)?.[1];
|
|
163
|
+
if (digits) {
|
|
164
|
+
return '#' + (digits.length === 3 ? digits.replace(/./g, (c) => c + c) : digits);
|
|
165
|
+
}
|
|
166
|
+
if (key in named) {
|
|
167
|
+
return named[key];
|
|
168
|
+
}
|
|
169
|
+
throw new RangeError(`Unknown color "${input}": use a name such as "blue" or a #hex such as "#1d4ed8"`);
|
|
170
|
+
}
|
|
171
|
+
const channel = (v) => {
|
|
172
|
+
const s = v / 255;
|
|
173
|
+
return s <= 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4;
|
|
174
|
+
};
|
|
175
|
+
const luminance = (hex) => [1, 3, 5].reduce((sum, i, k) => sum + channel(parseInt(hex.slice(i, i + 2), 16)) * [0.2126, 0.7152, 0.0722][k], 0);
|
|
176
|
+
export function contrastRatio(a, b) {
|
|
177
|
+
const [hi, lo] = [luminance(a), luminance(b)].sort((x, y) => y - x);
|
|
178
|
+
return (hi + 0.05) / (lo + 0.05);
|
|
179
|
+
}
|
|
180
|
+
export function readable(color, bg) {
|
|
181
|
+
const toward = luminance(bg) > 0.5 ? '#000000' : '#ffffff';
|
|
182
|
+
let out = color;
|
|
183
|
+
for (let f = 0.05; contrastRatio(out, bg) < MIN_CONTRAST && f <= 1; f += 0.05) {
|
|
184
|
+
out = mix(color, { to: toward, f });
|
|
185
|
+
}
|
|
186
|
+
return out;
|
|
187
|
+
}
|
|
188
|
+
export function withColors(t, { accent, palette }) {
|
|
189
|
+
if (accent === undefined && palette === undefined)
|
|
190
|
+
return t;
|
|
191
|
+
const fit = (c) => readable(parseColor(c), t.bg);
|
|
192
|
+
const lead = accent === undefined ? t.accent : fit(accent);
|
|
193
|
+
const rest = palette === undefined ? t.palette.slice(1) : listed(palette).map(fit);
|
|
194
|
+
const colors = [lead, ...cycled(rest, t.palette.length - 1)];
|
|
195
|
+
return { ...t, accent: lead, palette: colors };
|
|
196
|
+
}
|
|
197
|
+
function listed(palette) {
|
|
198
|
+
if (!Array.isArray(palette) || palette.length === 0 || palette.length > MAX_PALETTE) {
|
|
199
|
+
throw new RangeError(`A palette is a list of 1 to ${MAX_PALETTE} colors`);
|
|
200
|
+
}
|
|
201
|
+
return palette;
|
|
202
|
+
}
|
|
203
|
+
function cycled(list, min) {
|
|
204
|
+
return Array.from({ length: Math.max(min, list.length) }, (_, i) => list[i % list.length]);
|
|
205
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export declare const map: {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
regions: {
|
|
5
|
+
name: string;
|
|
6
|
+
d: string;
|
|
7
|
+
cx: number;
|
|
8
|
+
cy: number;
|
|
9
|
+
}[];
|
|
10
|
+
aliases: {
|
|
11
|
+
Zimbabwe: string[];
|
|
12
|
+
Zambia: string[];
|
|
13
|
+
Yemen: string[];
|
|
14
|
+
"United Arab Emirates": string[];
|
|
15
|
+
Uganda: string[];
|
|
16
|
+
Tunisia: string[];
|
|
17
|
+
Togo: string[];
|
|
18
|
+
Tanzania: string[];
|
|
19
|
+
Syria: string[];
|
|
20
|
+
Eswatini: string[];
|
|
21
|
+
"South Sudan": string[];
|
|
22
|
+
Sudan: string[];
|
|
23
|
+
"South Africa": string[];
|
|
24
|
+
Somalia: string[];
|
|
25
|
+
Somaliland: string[];
|
|
26
|
+
"Sierra Leone": string[];
|
|
27
|
+
Senegal: string[];
|
|
28
|
+
"Saudi Arabia": string[];
|
|
29
|
+
"São Tomé and Principe": string[];
|
|
30
|
+
Rwanda: string[];
|
|
31
|
+
Qatar: string[];
|
|
32
|
+
Nigeria: string[];
|
|
33
|
+
Niger: string[];
|
|
34
|
+
Namibia: string[];
|
|
35
|
+
Mozambique: string[];
|
|
36
|
+
Morocco: string[];
|
|
37
|
+
"Western Sahara": string[];
|
|
38
|
+
Mauritania: string[];
|
|
39
|
+
Malta: string[];
|
|
40
|
+
Mali: string[];
|
|
41
|
+
Malawi: string[];
|
|
42
|
+
Madagascar: string[];
|
|
43
|
+
Libya: string[];
|
|
44
|
+
Liberia: string[];
|
|
45
|
+
Lesotho: string[];
|
|
46
|
+
Lebanon: string[];
|
|
47
|
+
Kuwait: string[];
|
|
48
|
+
Kenya: string[];
|
|
49
|
+
Jordan: string[];
|
|
50
|
+
Israel: string[];
|
|
51
|
+
Palestine: string[];
|
|
52
|
+
Iraq: string[];
|
|
53
|
+
Iran: string[];
|
|
54
|
+
"Guinea-Bissau": string[];
|
|
55
|
+
Guinea: string[];
|
|
56
|
+
Ghana: string[];
|
|
57
|
+
Gambia: string[];
|
|
58
|
+
Gabon: string[];
|
|
59
|
+
Ethiopia: string[];
|
|
60
|
+
Eritrea: string[];
|
|
61
|
+
"Equatorial Guinea": string[];
|
|
62
|
+
Egypt: string[];
|
|
63
|
+
Djibouti: string[];
|
|
64
|
+
"Northern Cyprus": string[];
|
|
65
|
+
Cyprus: string[];
|
|
66
|
+
"Côte d'Ivoire": string[];
|
|
67
|
+
"DR Congo": string[];
|
|
68
|
+
Congo: string[];
|
|
69
|
+
Comoros: string[];
|
|
70
|
+
Chad: string[];
|
|
71
|
+
"Central African Republic": string[];
|
|
72
|
+
"Cabo Verde": string[];
|
|
73
|
+
Cameroon: string[];
|
|
74
|
+
Burundi: string[];
|
|
75
|
+
"Burkina Faso": string[];
|
|
76
|
+
Botswana: string[];
|
|
77
|
+
Benin: string[];
|
|
78
|
+
Bahrain: string[];
|
|
79
|
+
Angola: string[];
|
|
80
|
+
Algeria: string[];
|
|
81
|
+
};
|
|
82
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const map = { "width": 904, "height": 936, "regions": [{ "name": "Zimbabwe", "d": "M611.1,756.7L589.2,753.7L585.7,749.1L574.4,746L570.3,739.8L571,733.3L553.6,721.1L543.7,699.9L561.5,703L564.4,702.1L575.7,689.3L585.6,685L587.7,678.3L597.6,674.3L605.5,674.3L605.8,678.7L615.2,679.1L623.3,684.2L635,687.9L634.3,708L630.5,715.8L633.2,726.4L626.3,736.5L624.6,744Z", "cx": 597, "cy": 715 }, { "name": "Zambia", "d": "M605.5,674.3L597.6,674.3L587.7,678.3L585.6,685L575.7,689.3L564.4,702.1L561.5,703L543.7,699.9L532.1,696L521.5,697.8L507.2,685.1L505.3,677.3L505.8,641.4L529.7,641.3L530.2,615.5L534.5,621.6L546.4,620L546.7,624.7L554.8,628L565.9,628.2L569,624.6L572.8,631.9L582.6,635.5L590.1,646.4L599.5,646.5L600,631.6L591.2,633.9L583,623.2L586.6,613.3L586.8,603L584.2,595.5L591.3,586.2L612.9,583L627,593.7L638.7,598.1L647.1,612.8L642.2,616.5L643,636.2L638.4,637.8L633.7,649.8L639.8,654.8L603.9,666.4Z", "cx": 575, "cy": 647 }, { "name": "Yemen", "d": "M866.8,266.9L858.8,271.9L858.6,280.1L852.2,284.5L827.4,294.6L820.4,302.4L812.6,302.8L799.4,310.7L786.4,312.8L779.7,319.6L767,322.6L761.4,320L749.6,285.1L749.7,276.2L753.6,272.1L753,263.7L775.4,261.9L793.2,263L797,266.8L802.1,264.6L808.8,251L819.5,244.6L850.1,237.9ZM880.6,317.6L889.3,318.3L879.1,321.5Z", "cx": 805, "cy": 279 }, { "name": "United Arab Emirates", "d": "M881.2,150.2L884.1,158.6L878.1,160.6L877.3,188.5L876.6,189.6L848.1,187.9L834.2,171.9L838.6,175.3L846.2,172.5L859.9,172.4L864.8,169.4L867.1,162.4L877,148.8L877.7,145.3Z", "cx": 865, "cy": 174 }, { "name": "Uganda", "d": "M652.4,494.2L615.2,494.3L611.1,495.1L604,500.1L599.7,499.1L601.5,480.8L604.2,471.9L620.1,456.7L613.7,451.6L614.9,438.8L618.6,435.2L626.5,434.9L630.9,438.3L641,433.8L647,435.3L652.8,429.5L658,436L658.7,442.6L664.4,451L665.2,461.4L652.9,479.7Z", "cx": 634, "cy": 466 }, { "name": "Turkmenistan", "d": "M827.8,0L825.8,1.1L824.3,6.3L817,9.3L813.7,0L827.8,0ZM904,23.2L894.1,20L894.1,20L888.1,7.7L880.8,8.9L867.3,0L904,0Z", "cx": -1, "cy": -1 }, { "name": "Turkey", "d": "M717.3,0L721.9,7.5L721,13L728.7,21.6L724.4,24L719.3,21.5L708.4,20.6L704.9,24.1L688.5,25.6L675.9,31.5L663.7,29.7L656.6,33.2L648.4,31.9L649.3,38.6L642.3,42.8L642,31L637.4,35L627.6,33.3L619.3,40.9L610.3,43.1L594.4,34.7L587.1,34.3L586.2,40.9L578.2,43L570.8,37L554.9,32L549.7,26L550.9,22.6L541.1,19.4L549.1,17.5L544,7.5L545.2,4.3L538.2,5.6L538.3,0L717.3,0Z", "cx": -1, "cy": -1 }, { "name": "Tunisia", "d": "M387.8,79.8L387.4,88.8L379.9,92.7L371.9,99.8L372.5,107.9L364.5,114.3L360.7,92.4L353.5,86.6L347.7,77.8L346.2,68.2L354.5,60.7L356.5,55.2L355.8,40L360,35L371.8,30.6L376.9,32.3L378.7,37.9L386.2,36.3L379.6,42.7L380,47.8L385,55.5L373.2,67.3L374,71.6L383.6,75.2Z", "cx": 368, "cy": 69 }, { "name": "Togo", "d": "M251.9,345.7L250.2,353.5L256.6,358.1L259.4,369.8L258.7,404.9L253.4,406.4L245.6,396.9L248.1,378.9L244.5,373.2L246.7,365.8L243.2,364.5L245.4,354.3L240.3,350L240.4,344Z", "cx": 252, "cy": 375 }, { "name": "Tanzania", "d": "M638.7,598.1L627,593.7L612.9,583L607.9,570.8L600.7,563.6L596.5,543.4L597.4,536.8L601.2,536.9L614.4,522.4L611.6,511.6L615,510.8L614.8,501.3L611.1,495.1L615.2,494.3L652.4,494.2L697.5,519.6L699.3,527.4L716.2,540.1L711,554.9L711.5,560.5L719.3,569.2L716,575.3L715.7,586.9L720.7,605.2L728.4,612.2L722.5,616.6L704.3,623.7L697.6,622.1L690.8,627.2L680.7,627.1L672.1,623.7L662.1,625.1L658.1,618.4L657.7,606L650.9,601.5Z", "cx": 662, "cy": 560 }, { "name": "Syria", "d": "M642.3,42.8L649.3,38.6L648.4,31.9L656.6,33.2L663.7,29.7L675.9,31.5L688.5,25.6L704.9,24.1L697.1,31.9L699.1,52.8L694.9,58.4L677.1,71.1L658.6,84.9L647,80.5L646.2,73.1L646.6,72.2L652.7,62.4L645.6,57.9L641.7,46.9Z", "cx": 670, "cy": 52 }, { "name": "Eswatini", "d": "M615.3,799.7L616.1,810.3L613.9,815.9L604.1,813.3L601.9,804.9L609.5,797Z", "cx": 610, "cy": 807 }, { "name": "South Sudan", "d": "M652.8,429.5L647,435.3L641,433.8L630.9,438.3L626.5,434.9L618.6,435.2L614.9,438.8L600.6,425.4L582.5,428.4L572.8,419.2L568.8,411L561.8,407.4L559.9,400.5L545.5,389.7L541.3,382.1L534.4,380.3L532.6,375.7L537.3,373L543.4,355.7L552.2,354.1L561.6,365L577.7,363.9L579.7,367.2L589.3,367.1L603,355.3L612,361.7L617.9,361L631.5,345.3L627,333.6L640.4,330.8L640.8,347.7L649.7,355.6L652.3,364.6L652.9,375.5L642.6,377.9L640.1,383.5L648.1,386.8L661,399.2L668.1,413.6Z", "cx": 607, "cy": 392 }, { "name": "Sudan", "d": "M652.3,364.6L649.7,355.6L640.8,347.7L640.4,330.8L627,333.6L631.5,345.3L617.9,361L612,361.7L603,355.3L589.3,367.1L579.7,367.2L577.7,363.9L561.6,365L552.2,354.1L543.4,355.7L537.3,373L532.6,375.7L525.2,373.9L526.4,361.6L516.7,348.2L510.2,327L503.9,325.4L508.6,318.8L507.1,313.9L511.8,309L518.6,289.8L529,288.8L527.8,243.6L527.6,237.5L539.2,237.3L538.3,213.2L606.7,210.5L674.8,209.6L679.6,219.3L681.9,239L685.3,248.2L699.4,257.8L686.4,269.9L681.7,270.1L681.3,279.5L676.6,294L678.5,304.8L674.7,323.8L668.7,326.3L663.4,335.3L661.8,347.1L654.2,351.4Z", "cx": 599, "cy": 285 }, { "name": "Spain", "d": "M308.9,0L307.4,5.3L301,1.3L307.1,0L308.9,0ZM275,0L274.2,0.9L277.9,10L268.3,16.6L265.4,23.2L260.2,23.2L249.9,32.2L227.8,31L219,33.9L213.5,38.3L209.7,36.1L207.1,26.6L198.5,23.2L198.7,18.3L204.2,11.7L202.6,8.2L207.7,1.5L207,0L275,0ZM82.6,121.3L78.2,125.6L76.5,121.3Z", "cx": -1, "cy": -1 }, { "name": "South Africa", "d": "M589.2,753.7L611.1,756.7L613.1,769.8L617.2,781.7L615.3,799.7L609.5,797L601.9,804.9L604.1,813.3L613.9,815.9L616.1,810.3L624.8,810.7L619.3,826.8L616,831.7L604.7,840.4L591.5,859L574.5,874.3L563.1,882.9L547.2,890.9L529.8,895.3L516.7,893L502.4,893.7L497.4,897.2L484,898.2L474.5,901.5L462.2,891.3L455.7,878.9L460,876.9L459.6,866.2L453.8,857.6L445.8,838.5L440.2,829.2L446.9,822.3L451.3,830.2L470.3,833.1L479.5,827.3L480.2,783.5L484.3,786.6L489.2,797.2L488.4,808.3L498.6,808.5L510.1,799.2L513.1,791.9L517.5,789.7L534.1,796.4L543.7,794L547.9,783.8L558.7,777.9L560.8,771.5L575.5,759.5ZM575.4,848.3L579.6,846.2L583.4,838.6L575.6,830.2L565.4,834.2L557.3,842.7L560.5,850.5L567.1,854.5Z", "cx": 537, "cy": 833 }, { "name": "Somalia", "d": "M744.5,502.6L737.9,492.3L737.4,446.2L748.1,431.4L758.9,427.3L762.7,422.9L772.9,418.8L784.2,419.1L801,398.8L818.4,379.3L828.5,360.5L826.7,337.6L840,333.6L847.4,327.5L852.9,329.2L852.9,344.3L850.4,360.1L835.1,391.6L832.1,402.1L820.3,423.7L798.2,449.7L777.9,463.6L767.7,473.4L749.9,493.6Z", "cx": 793, "cy": 421 }, { "name": "Somaliland", "d": "M826.7,337.6L828.5,360.5L818.4,379.3L806.6,379.6L771.1,368.1L764.4,363.3L753.8,348L756.6,343.2L760,336.8L774.3,349.8L780.8,349.5L790.7,344.2L799.6,345L809,339.3Z", "cx": 797, "cy": 358 }, { "name": "Sierra Leone", "d": "M117.4,374L112.6,383L102,393.6L90.7,387.2L83.5,376.5L82.5,365.8L89.1,361.9L92.4,355.8L107.7,354.9Z", "cx": 100, "cy": 373 }, { "name": "Senegal", "d": "M100.3,293.6L101.5,308.5L108.4,317.5L107.9,324.2L97.3,324.8L81,319.8L64.1,319L46.2,322.3L46.6,313.3L57.3,312.6L65.7,307.9L75.7,312.4L80.4,311.3L66.5,304.7L61.6,307.3L49.6,306.7L44.1,293L53.1,278.2L57.6,269.6L72,268.5L79.7,270.1L87.5,276.1L94.3,287.8Z", "cx": 75, "cy": 298 }, { "name": "Saudi Arabia", "d": "M850.1,237.9L819.5,244.6L808.8,251L802.1,264.6L797,266.8L793.2,263L775.4,261.9L753,263.7L753.6,272.1L749.7,276.2L742.6,263.2L735.8,257.9L728.8,248.3L722,235.3L707.9,226.4L700.9,217L698,199.1L688.3,185.6L679.4,181.3L673.5,169.3L647.8,137.1L641.5,136L643.4,121.4L655.2,122.8L662.2,114.3L669.7,112.4L674.3,106L661.6,94.7L683.6,85.8L696.8,87.2L716.7,96.3L748.7,117.1L768.5,116.9L778.3,117.4L782,122.8L790.1,122L796,131.7L810.9,141.7L813.2,150.5L824.7,166.3L830.2,168.1L834.2,171.9L848.1,187.9L876.6,189.6L877.3,188.5L883.9,196.9L881.3,222.9Z", "cx": 758, "cy": 181 }, { "name": "Rwanda", "d": "M599.7,499.1L604,500.1L611.1,495.1L614.8,501.3L615,510.8L611.6,511.6L604,510.8L603.2,515.5L592.8,515.5L591.1,511.6Z", "cx": 604, "cy": 507 }, { "name": "Qatar", "d": "M830.2,168.1L824.7,166.3L822.7,158.2L826.3,148.9L830,151.8L832.5,161.1Z", "cx": 828, "cy": 159 }, { "name": "Portugal", "d": "M207,0L207.7,1.5L202.6,8.2L204.2,11.7L198.7,18.3L198.5,23.2L193.8,24.9L182.3,23.6L185.3,19L187.5,7L182.6,3.1L184.4,0L207,0Z", "cx": -1, "cy": -1 }, { "name": "Oman", "d": "M904,238.8L902.8,239.5L899.9,247.9L891.3,249.9L888.3,260.5L877.2,261.6L866.8,266.9L866.8,266.9L850.1,237.9L881.3,222.9L883.9,196.9L877.3,188.5L878.1,160.6L884.1,158.6L895.9,171.1L904,172.2L904,238.8ZM881.2,150.2L877.7,145.3L880.6,141.6Z", "cx": -1, "cy": -1 }, { "name": "Nigeria", "d": "M405.2,314.3L410.6,321.9L412.1,330.4L417.3,333.8L416.4,341.3L408.3,345.6L396.4,366.5L394.9,373.1L389.9,376.7L383.2,394.8L374.5,403.1L367.9,395.4L362.2,396.1L348.9,408.2L342.6,423.6L339.4,426L327.1,426L312.3,429.1L306.4,424.7L304.1,415.4L297.9,407.6L289,402.8L271.8,403.1L273.5,370.1L276.8,369.7L286.9,351L283.1,341.3L284.5,337.6L285.6,327.3L292,316.1L308.2,311.2L318.8,314.7L326.5,322.2L335.4,318.2L346.8,323.5L357.1,324.8L364.1,319.3L378.8,318.4L391.4,321.7Z", "cx": 338, "cy": 364 }, { "name": "Niger", "d": "M405.2,314.3L391.4,321.7L378.8,318.4L364.1,319.3L357.1,324.8L346.8,323.5L335.4,318.2L326.5,322.2L318.8,314.7L308.2,311.2L292,316.1L285.6,327.3L284.5,337.6L276.3,329.2L270.2,334.9L266.9,324.8L260.8,325.6L254.2,320.5L256.9,316.6L250.2,312.2L245.4,302.3L246.3,297.2L255.1,296.5L259.4,293.1L285.4,292.6L290.1,287.8L295.1,272.7L296.5,246.5L315.5,242.8L335.5,226.3L388.5,195.1L405.7,199.3L414.2,206.2L422.9,201.7L425,219.4L433.8,234.2L431.2,239L427.9,275.4L414.6,289.4L403.4,306Z", "cx": 356, "cy": 269 }, { "name": "Namibia", "d": "M521.5,697.8L532.1,696L543.7,699.9L533,702L523.6,707.7L520.4,702.5L492.9,705.9L492.2,750.3L480.6,750.2L480.2,783.5L479.5,827.3L470.3,833.1L451.3,830.2L446.9,822.3L440.2,829.2L427.6,814.7L423.2,802L421.5,786.6L417.5,776.7L415,752.6L404.6,737.3L392.5,713.3L384.2,702.2L383.6,693.1L399.6,689.6L409.6,694.6L462.5,694.7L470.5,699.8L498.2,702.1Z", "cx": 448, "cy": 751 }, { "name": "Mozambique", "d": "M611.1,756.7L624.6,744L626.3,736.5L633.2,726.4L630.5,715.8L634.3,708L635,687.9L623.3,684.2L615.2,679.1L605.8,678.7L605.5,674.3L603.9,666.4L639.8,654.8L644.6,661.7L652.9,659.9L654.8,670.8L650.9,678L662.2,693.1L661.2,686.5L668.5,680.4L670.7,663.4L664.1,653.8L656.4,647L654.6,632.9L658.5,625.2L662.1,625.1L672.1,623.7L680.7,627.1L690.8,627.2L697.6,622.1L704.3,623.7L722.5,616.6L728.4,612.2L727.1,623L728.2,639.2L727.3,662.9L729.3,666.1L725.4,674.4L716.1,686.1L706.7,692.5L695.4,695.6L684.5,701.5L672.8,714.1L655.8,726.2L652.3,733.3L655.2,738.3L659.6,764.7L653,783.7L631.8,791.8L622.4,800.5L624.8,810.7L616.1,810.3L615.3,799.7L617.2,781.7L613.1,769.8Z", "cx": 665, "cy": 694 }, { "name": "Morocco", "d": "M246.2,51.6L249.9,56L248.4,73.1L253.4,83.6L250.5,88L238.1,86.8L222.7,91.5L223.7,98.8L208.2,105.2L202,111L183.7,113.9L165,123.7L162.5,136.6L160.2,143.1L149.5,145.6L136.9,142.8L131.6,144L126.3,153.4L122.8,154L115.8,168.5L108,173.3L95.3,184.9L90.8,198.4L82.2,208.7L58.3,207.4L60.1,201.4L67.9,193.2L75.8,177.9L86.7,169.9L97.5,149.3L107.7,144.1L117.3,130.1L134.6,125.7L146.3,118.1L157.5,106.1L156.7,98.5L159.1,90L167.9,76.7L179.6,67.8L195.5,61.8L203.1,52.6L209.9,40.9L215.7,41.8L219.7,47.7L236.4,49.3Z", "cx": 167, "cy": 112 }, { "name": "Western Sahara", "d": "M162.5,136.6L161.8,141.1L159.2,156.9L122.8,154.5L117.4,185.6L105.4,190.7L102.3,211.4L58.5,208.5L56.5,215.1L58.3,207.4L82.2,208.7L90.8,198.4L95.3,184.9L108,173.3L115.8,168.5L122.8,154L126.3,153.4L131.6,144L136.9,142.8L149.5,145.6L160.2,143.1Z", "cx": 117, "cy": 177 }, { "name": "Mauritania", "d": "M100.3,293.6L94.3,287.8L87.5,276.1L79.7,270.1L72,268.5L57.6,269.6L53.1,278.2L53.9,272.5L61.1,256.8L62.8,244.5L59.5,233.6L64.6,223L59,211.7L56.5,215.1L58.5,208.5L102.3,211.4L105.4,190.7L117.4,185.6L122.8,154.5L159.2,156.9L161.8,141.1L200,171.5L180.3,170.5L179.4,274.7L182.2,278.4L179.6,288L137,286.5L119.4,286.6L116.1,289.9L110.9,283.7L105.3,291.4Z", "cx": 131, "cy": 227 }, { "name": "Mali", "d": "M107.9,324.2L108.4,317.5L101.5,308.5L100.3,293.6L105.3,291.4L110.9,283.7L116.1,289.9L119.4,286.6L137,286.5L179.6,288L182.2,278.4L179.4,274.7L180.3,170.5L200,171.5L262.5,221.7L268,230.7L285.1,238.4L283.4,246.1L286.7,248.2L296.5,246.5L295.1,272.7L290.1,287.8L285.4,292.6L259.4,293.1L255.1,296.5L246.3,297.2L234.9,295.3L214.3,304.3L205.1,311.5L203.5,316.3L194.8,314.8L191.3,318L189.5,327.6L178.9,333.7L175.1,351.1L168.9,353.8L166.6,347.2L157.8,353.8L149.8,350.4L145.7,353.6L141.8,338.2L137.2,334.4L135.3,325.2L125.8,329.4L120.7,327.1L115.7,330.9Z", "cx": 205, "cy": 267 }, { "name": "Malawi", "d": "M639.8,654.8L633.7,649.8L638.4,637.8L643,636.2L642.2,616.5L647.1,612.8L638.7,598.1L650.9,601.5L657.7,606L658.1,618.4L662.1,625.1L658.5,625.2L654.6,632.9L656.4,647L664.1,653.8L670.7,663.4L668.5,680.4L661.2,686.5L662.2,693.1L650.9,678L654.8,670.8L652.9,659.9L644.6,661.7Z", "cx": 653, "cy": 645 }, { "name": "Madagascar", "d": "M833.2,639L837.1,647.2L838.4,668.3L840.3,676.7L836.4,683.8L830.5,678.6L830.1,694.4L825.5,701L825.1,707.9L799.4,764.1L792.7,781.3L786.6,792.4L781,796.6L766.7,800.9L762.4,800.4L751.6,793.1L748.9,785.1L750.7,775L748.2,766.9L748.1,756.6L751.8,748.2L761.7,736.4L765.5,724.8L762.4,710.5L762.9,699.3L770.1,684.9L792.2,679.2L810.7,665.1L814.5,653.2L823.6,649.3L824.4,639.3L829.7,634.4Z", "cx": 791, "cy": 724 }, { "name": "Libya", "d": "M364.5,114.3L372.5,107.9L371.9,99.8L379.9,92.7L387.4,88.8L387.8,79.8L396,83.7L406.7,83.2L426.9,89.6L430.2,98.3L436.9,102.9L450.2,105.1L459.4,108.7L467.6,114.5L476.1,112.1L480.7,105.1L478.1,96.3L485.4,87.3L496.2,82.9L511.9,86.5L514.2,91.2L529.4,93.3L534.6,97.5L531.6,101.3L533.3,107.9L531,114.2L534.4,126.9L538.3,213.2L539.2,237.3L527.6,237.5L527.8,243.6L434.5,196.3L422.9,201.7L414.2,206.2L405.7,199.3L388.5,195.1L383.8,185.7L369.4,181.9L366.9,173L361.1,164L366,158.3L365.2,149L367.3,143.6L367.3,129.4L362.2,115.6Z", "cx": 458, "cy": 154 }, { "name": "Liberia", "d": "M102,393.6L112.6,383L117.4,374L126.4,376L126.4,387.7L133.1,389.8L138.1,386.2L140.1,392.3L136.1,399.3L149.5,408L147.8,426.6L129.2,417.5L116.1,404.3Z", "cx": 128, "cy": 400 }, { "name": "Lesotho", "d": "M575.4,848.3L567.1,854.5L560.5,850.5L557.3,842.7L565.4,834.2L575.6,830.2L583.4,838.6L579.6,846.2Z", "cx": 570, "cy": 842 }, { "name": "Lebanon", "d": "M645.6,57.9L652.7,62.4L646.6,72.2L646.4,72.4L639.3,76.8Z", "cx": 646, "cy": 67 }, { "name": "Kuwait", "d": "M790.1,122L782,122.8L778.3,117.4L768.5,116.9L772.5,105.8L781.5,104.8L783.9,112.4Z", "cx": 779, "cy": 114 }, { "name": "Kenya", "d": "M652.4,494.2L652.9,479.7L665.2,461.4L664.4,451L658.7,442.6L658,436L652.8,429.5L668.1,413.6L673.9,415.3L678.2,426.4L688.2,426.8L702.6,436.1L719.6,438.3L723.7,433.3L734.6,427.9L740.2,432L748.1,431.4L737.4,446.2L737.9,492.3L744.5,502.6L736.7,506.8L733.7,513.2L728.6,515.1L727.3,522.1L719.5,537.5L716.2,540.1L699.3,527.4L697.5,519.6Z", "cx": 699, "cy": 474 }, { "name": "Jordan", "d": "M647,80.5L658.6,84.9L677.1,71.1L683.6,85.8L661.6,94.7L674.3,106L669.7,112.4L662.2,114.3L655.2,122.8L643.4,121.4L643.4,119L645.5,95.7L645.1,84.7Z", "cx": 660, "cy": 98 }, { "name": "Italy", "d": "M461.5,0L460.3,2.7L457.8,0L461.5,0ZM443.5,0L442.2,2.3L448,7.8L448.6,12.3L442.4,15.6L437.2,24.5L433.8,24.5L438.7,15L433.9,0.7L432,0L443.5,0ZM432.3,21.3L427.3,30.1L427.2,39.1L420.9,37.7L400.2,25.6L403.4,21.4L413,23.6ZM374.4,0L372.8,7.1L365,12L360.6,8.5L362.6,1.2L362.4,0L374.4,0Z", "cx": -1, "cy": -1 }, { "name": "Israel", "d": "M646.4,72.4L646.2,73.1L647,80.5L645.1,84.7L639.2,87.8L645.5,95.7L643.4,119L642.7,119.9L633,99.5L635,94.9L639.3,76.8Z", "cx": 641, "cy": 95 }, { "name": "Palestine", "d": "M645.1,84.7L645.5,95.7L639.2,87.8Z", "cx": 643, "cy": 89 }, { "name": "Iraq", "d": "M704.9,24.1L708.4,20.6L719.3,21.5L724.4,24L728.7,21.6L737.9,34.5L746.6,36L748.3,44.3L744.6,48.7L744.1,58.9L756.9,70.5L768.6,75.7L775.1,82.9L775.7,92.7L787.5,104.5L781.5,104.8L772.5,105.8L768.5,116.9L748.7,117.1L716.7,96.3L696.8,87.2L683.6,85.8L677.1,71.1L694.9,58.4L699.1,52.8L697.1,31.9Z", "cx": 730, "cy": 72 }, { "name": "Iran", "d": "M867.3,0L880.8,8.9L888.1,7.7L894.1,20L896.3,36.5L893.4,39.9L895.6,45.5L900.1,46.5L898.2,51.6L904,61.4L904,149.2L904,149.2L891.7,147.4L884.7,133.8L877.2,130.8L863.8,140.4L850.8,139.5L835.3,129.6L821.2,124.4L814.4,113.4L802.8,100.2L797.9,102.8L791.9,99.9L787.5,104.5L775.7,92.7L775.1,82.9L768.6,75.7L756.9,70.5L744.1,58.9L744.6,48.7L748.3,44.3L746.6,36L737.9,34.5L728.7,21.6L721,13L721.9,7.5L717.3,0L759,0L759,0L764.6,2.2L769.3,11.1L780.4,13L792.4,19.8L803.2,20L813.7,15.7L819.6,15.5L817,9.3L817,9.3L824.3,6.3L825.8,1.1L827.8,0L867.3,0Z", "cx": 830, "cy": 63 }, { "name": "Guinea-Bissau", "d": "M46.2,322.3L64.1,319L81,319.8L77.9,325.9L79.9,331.6L68.7,334.1L63.9,341.1L60.1,337.5L60.5,328.2L55.8,330.3Z", "cx": 66, "cy": 327 }, { "name": "Guinea", "d": "M117.4,374L107.7,354.9L92.4,355.8L89.1,361.9L82.5,365.8L78.6,354.6L70.3,350.2L67,341.4L63.9,341.1L68.7,334.1L79.9,331.6L77.9,325.9L81,319.8L97.3,324.8L107.9,324.2L115.7,330.9L120.7,327.1L125.8,329.4L135.3,325.2L137.2,334.4L141.8,338.2L145.7,353.6L143.5,361.9L147.4,367.2L148.2,375.7L138.1,386.2L133.1,389.8L126.4,387.7L126.4,376Z", "cx": 112, "cy": 349 }, { "name": "Greece", "d": "M511.5,12.2L518.6,15.4L520.7,20.6L510,14ZM541.3,7.1L543.3,10.5L535.7,8.8ZM518.2,52L535.3,54.3L543.6,57.2L528.6,58.9L515.1,53.5ZM502.8,0L510,8.4L503.3,13.1L517.6,20L518.9,26.6L513.8,23.1L508.4,24.8L513.3,29.8L505.4,28.8L508.4,34.9L497.2,38.3L493.6,29L489,25.4L495.8,19.8L507.1,23.9L509.3,21.3L501.8,18.4L488.5,19.2L484.9,12L480,8.3L479.9,0.8L481.5,0L502.8,0Z", "cx": -1, "cy": -1 }, { "name": "Ghana", "d": "M240.4,344L240.3,350L245.4,354.3L243.2,364.5L246.7,365.8L244.5,373.2L248.1,378.9L245.6,396.9L253.4,406.4L250.4,409.8L242.1,410.4L214.5,422.4L201.2,418.2L201.5,417.7L202.4,417.7L204.8,417.4L200.4,396.7L206.2,382.8L209.7,379.5L208.1,363.6L207.5,344.7L232.8,345.4Z", "cx": 225, "cy": 383 }, { "name": "Gambia", "d": "M49.6,306.7L61.6,307.3L66.5,304.7L80.4,311.3L75.7,312.4L65.7,307.9L57.3,312.6L46.6,313.3Z", "cx": 61, "cy": 309 }, { "name": "Gabon", "d": "M400.3,455.6L400.1,466.9L411.2,465.4L414.3,472.2L407.5,479.8L407.2,484.7L414.8,489.8L413.7,505.4L410,512.4L405.7,508.4L402.4,511.6L389.7,505.8L389.9,510.8L379.6,510.9L378.8,517L383.7,522.9L373.9,530.2L351.4,505.5L345.5,490.8L351.3,486.4L354.9,469.4L376.3,469.9L376.3,455.5L376.5,453.9Z", "cx": 382, "cy": 489 }, { "name": "France", "d": "M888.8,755L884.2,753.8L888.3,749.4Z", "cx": -1, "cy": -1 }, { "name": "Ethiopia", "d": "M668.1,413.6L661,399.2L648.1,386.8L640.1,383.5L642.6,377.9L652.9,375.5L652.3,364.6L654.2,351.4L661.8,347.1L663.4,335.3L668.7,326.3L674.7,323.8L678.5,304.8L687,302.1L690.9,305.8L694,297L701.7,302.1L708.2,299.3L721.8,301.4L728.5,304.7L748.9,325L742.5,336.2L743.3,343.8L756.6,343.2L753.8,348L764.4,363.3L771.1,368.1L806.6,379.6L818.4,379.3L801,398.8L784.2,419.1L772.9,418.8L762.7,422.9L758.9,427.3L748.1,431.4L740.2,432L734.6,427.9L723.7,433.3L719.6,438.3L702.6,436.1L688.2,426.8L678.2,426.4L673.9,415.3Z", "cx": 719, "cy": 374 }, { "name": "Eritrea", "d": "M678.5,304.8L676.6,294L681.3,279.5L681.7,270.1L686.4,269.9L699.4,257.8L703.5,264.8L709.6,283.3L716,292.9L732.8,298.7L748.5,315.7L757.4,321.7L748.9,325L728.5,304.7L721.8,301.4L708.2,299.3L701.7,302.1L694,297L690.9,305.8L687,302.1Z", "cx": 704, "cy": 290 }, { "name": "Equatorial Guinea", "d": "M376.3,455.5L376.3,469.9L354.9,469.4L352.4,468.1L357.6,453.8L359.8,455.5Z", "cx": 365, "cy": 463 }, { "name": "Egypt", "d": "M674.8,209.6L606.7,210.5L538.3,213.2L534.4,126.9L531,114.2L533.3,107.9L531.6,101.3L534.6,97.5L557.5,100.2L577.8,106.2L591.4,98.2L603.5,97.8L610.2,101.9L629.4,100L632.4,98.2L633,99.5L642.7,119.9L637.6,140.8L625.9,131.6L616.6,115.1L614.8,119.3L622.1,131.8L630.1,139.5L636.2,154.4L657.3,186.7L660.3,198.5Z", "cx": 591, "cy": 158 }, { "name": "Djibouti", "d": "M760,336.8L756.6,343.2L743.3,343.8L742.5,336.2L748.9,325L757.4,321.7L761.3,328.1L751.7,337Z", "cx": 751, "cy": 334 }, { "name": "Northern Cyprus", "d": "M624.4,53.9L610.9,53.3L628.2,47.4Z", "cx": 621, "cy": 52 }, { "name": "Cyprus", "d": "M610.9,53.3L624.4,53.9L614.1,60.2L607.1,56Z", "cx": 615, "cy": 56 }, { "name": "Côte d'Ivoire", "d": "M145.7,353.6L149.8,350.4L157.8,353.8L166.6,347.2L168.9,353.8L175.1,351.1L188.7,361.1L202.1,358.3L208.1,363.6L209.7,379.5L206.2,382.8L200.4,396.7L204.8,417.4L202.4,417.7L178.3,416.4L167.6,418.7L147.8,426.6L149.5,408L136.1,399.3L140.1,392.3L138.1,386.2L148.2,375.7L147.4,367.2L143.5,361.9Z", "cx": 173, "cy": 386 }, { "name": "DR Congo", "d": "M612.9,583L591.3,586.2L584.2,595.5L586.8,603L586.6,613.3L583,623.2L591.2,633.9L600,631.6L599.5,646.5L590.1,646.4L582.6,635.5L572.8,631.9L569,624.6L565.9,628.2L554.8,628L546.7,624.7L546.4,620L534.5,621.6L530.2,615.5L528.5,617.2L509.7,619.3L509.8,607.9L504.3,598.2L505.5,588.8L503.7,571.8L489.8,571.4L489.7,567.2L476.6,569.8L474.3,579.8L452.3,581.2L445.6,571.1L442.3,558.7L437.4,554.1L397.7,554.1L387.3,552.8L390.8,552.1L390.1,544.4L397.7,539L401.9,541.5L413.4,534.9L417.7,542.1L435.3,524.7L436.1,508.9L444.3,497.2L455,488.9L458.9,457.5L465.5,439.5L464.9,430L476.3,419.3L489.3,427.4L512.1,431.4L516.1,425.1L524.2,424.9L535.2,420.8L546.6,420.3L549.9,416.8L565.7,419.8L572.8,419.2L582.5,428.4L600.6,425.4L614.9,438.8L613.7,451.6L620.1,456.7L604.2,471.9L601.5,480.8L599.7,499.1L591.1,511.6L592.8,515.5L595.3,519.6L597.4,536.8L596.5,543.4L600.7,563.6L607.9,570.8Z", "cx": 527, "cy": 517 }, { "name": "Congo", "d": "M373.9,530.2L383.7,522.9L378.8,517L379.6,510.9L389.9,510.8L389.7,505.8L402.4,511.6L405.7,508.4L410,512.4L413.7,505.4L414.8,489.8L407.2,484.7L407.5,479.8L414.3,472.2L411.2,465.4L400.1,466.9L400.3,455.6L414.9,455.7L430.3,458.7L434.2,461.6L435.7,454.3L441.8,438.8L451.1,437L465.5,439.5L458.9,457.5L455,488.9L444.3,497.2L436.1,508.9L435.3,524.7L417.7,542.1L413.4,534.9L401.9,541.5L397.7,539L395.3,536.7L384.8,543.6Z", "cx": 424, "cy": 493 }, { "name": "Chad", "d": "M527.8,243.6L529,288.8L518.6,289.8L511.8,309L507.1,313.9L508.6,318.8L503.9,325.4L510.2,327L516.7,348.2L512.2,347.3L486.4,370.3L471.9,371.7L465.2,383.4L453.7,384.3L443.2,389.6L440.3,385.8L427.3,389.9L422.9,377.3L409.2,363.3L412.4,359.8L429.5,359.5L425,355.2L422,346L422.7,337L416,323.2L410.6,321.9L405.2,314.3L403.4,306L414.6,289.4L427.9,275.4L431.2,239L433.8,234.2L425,219.4L422.9,201.7L434.5,196.3Z", "cx": 466, "cy": 295 }, { "name": "Central African Republic", "d": "M532.6,375.7L534.4,380.3L541.3,382.1L545.5,389.7L559.9,400.5L561.8,407.4L568.8,411L572.8,419.2L565.7,419.8L549.9,416.8L546.6,420.3L535.2,420.8L524.2,424.9L516.1,425.1L512.1,431.4L489.3,427.4L476.3,419.3L464.9,430L465.5,439.5L451.1,437L441.8,438.8L435.7,454.3L434.3,446.5L422.8,435.2L416,417.4L418.2,405.1L427.3,389.9L440.3,385.8L443.2,389.6L453.7,384.3L465.2,383.4L471.9,371.7L486.4,370.3L512.2,347.3L516.7,348.2L526.4,361.6L525.2,373.9Z", "cx": 488, "cy": 402 }, { "name": "Cameroon", "d": "M342.6,423.6L348.9,408.2L362.2,396.1L367.9,395.4L374.5,403.1L383.2,394.8L389.9,376.7L394.9,373.1L396.4,366.5L408.3,345.6L416.4,341.3L417.3,333.8L412.1,330.4L410.6,321.9L416,323.2L422.7,337L422,346L425,355.2L429.5,359.5L412.4,359.8L409.2,363.3L422.9,377.3L427.3,389.9L418.2,405.1L416,417.4L422.8,435.2L434.3,446.5L435.7,454.3L434.2,461.6L430.3,458.7L414.9,455.7L400.3,455.6L376.5,453.9L376.3,455.5L359.8,455.5L357.6,453.8L359.4,444.3L354.7,435.4L347.9,431.8Z", "cx": 394, "cy": 413 }, { "name": "Burundi", "d": "M611.6,511.6L614.4,522.4L601.2,536.9L597.4,536.8L595.3,519.6L592.8,515.5L603.2,515.5L604,510.8Z", "cx": 604, "cy": 523 }, { "name": "Burkina Faso", "d": "M251.9,345.7L240.4,344L232.8,345.4L207.5,344.7L208.1,363.6L202.1,358.3L188.7,361.1L175.1,351.1L178.9,333.7L189.5,327.6L191.3,318L194.8,314.8L203.5,316.3L205.1,311.5L214.3,304.3L234.9,295.3L246.3,297.2L245.4,302.3L250.2,312.2L256.9,316.6L254.2,320.5L260.8,325.6L266.9,324.8L270.2,334.9L265.1,340.7L258.5,340.2Z", "cx": 221, "cy": 329 }, { "name": "Botswana", "d": "M543.7,699.9L553.6,721.1L571,733.3L570.3,739.8L574.4,746L585.7,749.1L589.2,753.7L575.5,759.5L560.8,771.5L558.7,777.9L547.9,783.8L543.7,794L534.1,796.4L517.5,789.7L513.1,791.9L510.1,799.2L498.6,808.5L488.4,808.3L489.2,797.2L484.3,786.6L480.2,783.5L480.6,750.2L492.2,750.3L492.9,705.9L520.4,702.5L523.6,707.7L533,702Z", "cx": 525, "cy": 752 }, { "name": "Benin", "d": "M258.7,404.9L259.4,369.8L256.6,358.1L250.2,353.5L251.9,345.7L258.5,340.2L265.1,340.7L270.2,334.9L276.3,329.2L284.5,337.6L283.1,341.3L286.9,351L276.8,369.7L273.5,370.1L271.8,403.1Z", "cx": 268, "cy": 363 }, { "name": "Angola", "d": "M397.7,539L390.1,544.4L390.8,552.1L387.3,552.8L384.8,543.6L395.3,536.7ZM530.2,615.5L529.7,641.3L505.8,641.4L505.3,677.3L507.2,685.1L521.5,697.8L498.2,702.1L470.5,699.8L462.5,694.7L409.6,694.6L399.6,689.6L383.6,693.1L383.3,675.9L385.9,673.4L392.4,646.7L402.6,635.5L407,626.8L407.7,617.6L397.1,593.1L401.7,584.8L388.4,556.9L397.7,554.1L437.4,554.1L442.3,558.7L445.6,571.1L452.3,581.2L474.3,579.8L476.6,569.8L489.7,567.2L489.8,571.4L503.7,571.8L505.5,588.8L504.3,598.2L509.8,607.9L509.7,619.3L528.5,617.2Z", "cx": 452, "cy": 633 }, { "name": "Algeria", "d": "M360,35L355.8,40L356.5,55.2L354.5,60.7L346.2,68.2L347.7,77.8L353.5,86.6L360.7,92.4L364.5,114.3L362.2,115.6L367.3,129.4L367.3,143.6L365.2,149L366,158.3L361.1,164L366.9,173L369.4,181.9L383.8,185.7L388.5,195.1L335.5,226.3L315.5,242.8L296.5,246.5L286.7,248.2L283.4,246.1L285.1,238.4L268,230.7L262.5,221.7L200,171.5L161.8,141.1L162.5,136.6L165,123.7L183.7,113.9L202,111L208.2,105.2L223.7,98.8L222.7,91.5L238.1,86.8L250.5,88L253.4,83.6L248.4,73.1L249.9,56L246.2,51.6L249.3,51.9L260.7,45.7L271,43.5L284.5,36.9L298.3,36.6L310.8,33.7L320.8,34.1L327.4,37L338.8,32.6L353.1,35.7Z", "cx": 287, "cy": 139 }], "aliases": { "Zimbabwe": ["Zimbábue", "Zimbabue", "Simbabwe", "ZW", "ZWE"], "Zambia": ["Zâmbia", "Zambie", "Sambia", "ZM", "ZMB"], "Yemen": ["Iémen", "Yémen", "Jemen", "YE", "YEM"], "United Arab Emirates": ["Emirados Árabes Unidos", "Emiratos Árabes Unidos", "Émirats arabes unis", "Vereinigte Arabische Emirate", "Emirati Arabi Uniti", "AE", "ARE", "UAE", "Emirados Árabes"], "Uganda": ["Ouganda", "UG", "UGA"], "Tunisia": ["Tunísia", "Túnez", "Tunisie", "Tunesien", "TN", "TUN"], "Togo": ["TG", "TGO"], "Tanzania": ["Tanzânia", "Tanzanie", "Tansania", "TZ", "TZA"], "Syria": ["Síria", "Siria", "Syrie", "Syrien", "SY", "SYR"], "Eswatini": ["eSwatini", "Kingdom of eSwatini", "Essuatíni", "Suazilandia", "SZ", "SWZ", "Swaziland"], "South Sudan": ["S. Sudan", "Sudão do Sul", "Sudán del Sur", "Soudan du Sud", "Südsudan", "Sudan del Sud", "SS", "SSD"], "Sudan": ["Sudão", "Sudán", "Soudan", "SD", "SDN"], "South Africa": ["África do Sul", "Sudáfrica", "Afrique du Sud", "Südafrika", "Sudafrica", "ZA", "ZAF"], "Somalia": ["Somália", "Somalie", "SO", "SOM"], "Somaliland": ["Somalilândia", "Somalilandia"], "Sierra Leone": ["Serra Leoa", "Sierra Leona", "SL", "SLE"], "Senegal": ["Sénégal", "SN", "SEN"], "Saudi Arabia": ["Arábia Saudita", "Arabia Saudita", "Arabie saoudite", "Saudi-Arabien", "SA", "SAU"], "São Tomé and Principe": ["São Tomé and Príncipe", "São Tomé e Príncipe", "Santo Tomé y Príncipe", "Sao Tomé-et-Principe", "São Tomé und Príncipe", "ST", "STP"], "Rwanda": ["Ruanda", "RW", "RWA"], "Qatar": ["Catar", "Katar", "QA", "QAT"], "Nigeria": ["Nigéria", "NG", "NGA"], "Niger": ["Níger", "NE", "NER"], "Namibia": ["Namíbia", "Namibie", "NA", "NAM"], "Mozambique": ["Moçambique", "Mosambik", "Mozambico", "MZ", "MOZ"], "Morocco": ["Marrocos", "Marruecos", "Maroc", "Marokko", "Marocco", "MA", "MAR"], "Western Sahara": ["W. Sahara", "Sara Ocidental", "Sahara Occidental", "Sahara occidental", "Westsahara", "Sahara Occidentale", "EH", "ESH"], "Mauritania": ["Mauritânia", "Mauritanie", "Mauretanien", "MR", "MRT"], "Malta": ["Malte", "MT", "MLT"], "Mali": ["Malí", "ML", "MLI"], "Malawi": ["Malaui", "MW", "MWI"], "Madagascar": ["Madagáscar", "Madagaskar", "MG", "MDG"], "Libya": ["Líbia", "Libia", "Libye", "Libyen", "LY", "LBY"], "Liberia": ["Libéria", "LR", "LBR"], "Lesotho": ["Lesoto", "LS", "LSO"], "Lebanon": ["Líbano", "Liban", "Libanon", "Libano", "LB", "LBN"], "Kuwait": ["Koweït", "KW", "KWT"], "Kenya": ["Quénia", "Kenia", "KE", "KEN", "Quênia"], "Jordan": ["Jordânia", "Jordania", "Jordanie", "Jordanien", "Giordania", "JO", "JOR"], "Israel": ["Israël", "Israele", "IL", "ISR"], "Palestine": ["Palestina", "Palästina", "PS", "PSE"], "Iraq": ["Iraque", "Irak", "IQ", "IRQ"], "Iran": ["Irão", "Irán", "IR", "IRN", "Irã"], "Guinea-Bissau": ["Guiné-Bissau", "Guinea-Bisáu", "Guinée-Bissau", "GW", "GNB"], "Guinea": ["Guiné", "Guinée", "GN", "GIN"], "Ghana": ["Gana", "GH", "GHA"], "Gambia": ["The Gambia", "Gâmbia", "Gambie", "GM", "GMB"], "Gabon": ["Gabão", "Gabón", "Gabun", "GA", "GAB"], "Ethiopia": ["Etiópia", "Etiopía", "Éthiopie", "Äthiopien", "Etiopia", "ET", "ETH"], "Eritrea": ["Eritreia", "Érythrée", "ER", "ERI"], "Equatorial Guinea": ["Eq. Guinea", "Guiné Equatorial", "Guinea Ecuatorial", "Guinée équatoriale", "Äquatorialguinea", "Guinea Equatoriale", "GQ", "GNQ"], "Egypt": ["Egito", "Egipto", "Égypte", "Ägypten", "Egitto", "EG", "EGY"], "Djibouti": ["Yibuti", "Dschibuti", "Gibuti", "DJ", "DJI"], "Northern Cyprus": ["N. Cyprus", "Turkish Republic of Northern Cyprus", "República Turca do Chipre do Norte", "República Turca del Norte de Chipre", "Chypre du Nord", "Türkische Republik Nordzypern", "Cipro del Nord"], "Cyprus": ["Chipre", "Chypre", "Republik Zypern", "Cipro", "CY", "CYP"], "Côte d'Ivoire": ["Ivory Coast", "Costa do Marfim", "Costa de Marfil", "Elfenbeinküste", "Costa d'Avorio", "CI", "CIV"], "DR Congo": ["Dem. Rep. Congo", "Democratic Republic of the Congo", "República Democrática do Congo", "República Democrática del Congo", "République démocratique du Congo", "Demokratische Republik Kongo", "Repubblica Democratica del Congo", "CD", "COD", "Congo-Kinshasa"], "Congo": ["Republic of the Congo", "República do Congo", "República del Congo", "République du Congo", "Republik Kongo", "Repubblica del Congo", "CG", "COG", "Congo-Brazzaville"], "Comoros": ["Comores", "Comoras", "Komoren", "Comore", "KM", "COM"], "Chad": ["Chade", "Tchad", "Tschad", "Ciad", "TD", "TCD"], "Central African Republic": ["Central African Rep.", "República Centro-Africana", "República Centroafricana", "République centrafricaine", "Zentralafrikanische Republik", "Repubblica Centrafricana", "CF", "CAF"], "Cabo Verde": ["Republic of Cabo Verde", "Cape Verde", "Cap-Vert", "Kap Verde", "Capo Verde", "CV", "CPV"], "Cameroon": ["Camarões", "Camerún", "Cameroun", "Kamerun", "Camerun", "CM", "CMR"], "Burundi": ["BI", "BDI"], "Burkina Faso": ["BF", "BFA"], "Botswana": ["Botsuana", "BW", "BWA"], "Benin": ["Benim", "Benín", "Bénin", "BJ", "BEN"], "Bahrain": ["Bahrein", "Baréin", "Bahreïn", "BH", "BHR"], "Angola": ["AO", "AGO"], "Algeria": ["Argélia", "Argelia", "Algérie", "Algerien", "DZ", "DZA"] } };
|