API Documentation

ChartMap

Beautiful country chart maps widget for drawing custom geo maps. For examples check out Chartmap demo page or draw custom map using our Live editor.

Properties

Key Type Required Description
background string No The canvas background color in hexadecimal format. Defaults to '#FFFFFF'
fill string No The map background color in hexadecimal format. Defaults to '#5DC1E4'
font object No The font object controls the appearance of the text of the tooltip:
font: {family: 'Arial', size: '12px'}
height number No Chartmap height. Defaults to 320
hover string No The provinces background color on mouseover in hexadecimal format. Defaults to '#957030'
map string No Two-letter country code defined in ISO 3166-1. Defaults to 'BG'
palette boolean No Defaults to true
plugin string No The technology used to render the map. Defaults to 'svg'. The following options are available:
  • 'svg'
provinces boolean|array No If false do not draw the provinces on the map. If an array is provided, sets custom background color of provinces. provinces: [{id: "BGR-2235", fill: "#5DC1E4"}, {id: "BGR-2244", fill: "#5DC1E4", ...}]
tooltip object No An object with members to configure the tooltip element. To specify properties of this object, you can use object literal notation, as shown here:
tooltip: {color: "#fff", fill: "#000", radius: "2px", opacity: 1, offset: {x: 15, y: 15}, pattern: "%name"}
width number No Chartmap width. Defaults to 530
zoom number No Map zoom. Defaults to 11

Recommended zoom level per country:

Alpha 2 Country Zoom
AF Afghanistan 3.31
AX Aland 30.07
AL Albania 26.98
DZ Algeria 2.31
AS American Samoa 16.27
AD Andorra 132.76
AO Angola 3.84
AI Anguilla 104.37
AQ Antarctica 0.13
AG Antigua and Barb. 210.14
AR Argentina 2.39
AM Armenia 15.04
AW Aruba 256.54
AU Australia 1.03
AT Austria 6.24
AZ Azerbaijan 8.14
BS Bahamas 6.95
BH Bahrain 277.27
BD Bangladesh 10.30
BB Barbados 209.47
BY Belarus 4.98
BE Belgium 12.36
BZ Belize 32.76
BJ Benin 15.47
BM Bermuda 258.24
BT Bhutan 14.18
BO Bolivia 3.90
BA Bosnia and Herz. 12.20
BW Botswana 5.08
IO Br. Indian Ocean Ter. 38.59
BR Brazil 1.05
VG British Virgin Is. 94.61
BN Brunei 34.96
BG Bulgaria 7.61
BF Burkina Faso 6.02
BI Burundi 25.78
KH Cambodia 8.99
CM Cameroon 6.18
CA Canada 0.54
CV Cape Verde 17.67
KY Cayman Is. 28.17
CF Central African Rep. 3.65
TD Chad 4.52
CL Chile 1.11
CN China 0.78
CO Colombia 3.21
KM Comoros 36.18
CG Congo 6.32
CK Cook Is. 5.59
CR Costa Rica 10.45
HR Croatia 8.06
CU Cuba 4.40
CW Curaçao 110.21
CY Cyprus 26.05
CZ Czech Rep. 7.04
CI Côte d'Ivoire 7.79
CD Dem. Rep. Congo 2.50
KP Dem. Rep. Korea 7.34
DK Denmark 6.75
DJ Djibouti 28.52
DM Dominica 198.66
DO Dominican Rep. 12.93
EC Ecuador 2.84
EG Egypt 3.90
SV El Salvador 19.75
GQ Eq. Guinea 8.32
ER Eritrea 7.11
EE Estonia 7.49
ET Ethiopia 3.18
FO Faeroe Is. 34.79
FK Falkland Is. 13.28
FJ Fiji 0.13
FI Finland 4.35
PF Fr. Polynesia 2.43
TF Fr. S. Antarctic Lands 1.26
FR France 3.24
GA Gabon 8.20
GM Gambia 15.81
GE Georgia 7.10
DE Germany 5.19
GH Ghana 10.70
GI Gibraltar 2427.47
GR Greece 5.53
GL Greenland 0.77
GD Grenada 129.06
GU Guam 145.17
GT Guatemala 11.83
GG Guernsey 94.63
GN Guinea 6.42
GW Guinea-Bissau 15.52
GY Guyana 9.69
HT Haiti 16.71
HM Heard I. and McDonald Is. 82.63
HN Honduras 7.64
HK Hong Kong 84.42
HU Hungary 7.02
IS Iceland 4.31
IN India 1.63
ID Indonesia 1.04
IR Iran 2.47
IQ Iraq 4.87
IE Ireland 10.62
IM Isle of Man 99.56
IL Israel 29.04
IT Italy 4.00
JM Jamaica 21.77
JP Japan 1.53
JE Jersey 203.70
JO Jordan 10.96
KZ Kazakhstan 1.17
KE Kenya 5.96
KI Kiribati 0.14
KR Korea 6.57
KW Kuwait 25.05
KG Kyrgyzstan 4.32
LA Lao PDR 6.29
LV Latvia 6.57
LB Lebanon 31.65
LS Lesotho 19.56
LR Liberia 11.63
LY Libya 3.00
LI Liechtenstein 340.47
LT Lithuania 8.10
LU Luxembourg 60.45
MO Macao 704.02
MK Macedonia 18.56
MG Madagascar 6.54
MW Malawi 14.69
MY Malaysia 2.43
MV Maldives 44.56
ML Mali 2.89
MT Malta 124.13
MH Marshall Is. 7.06
MR Mauritania 3.88
MU Mauritius 6.83
MX Mexico 1.50
FM Micronesia 1.91
MD Moldova 13.55
MC Monaco 663.99
MN Mongolia 1.48
ME Montenegro 24.78
MS Montserrat 531.37
MA Morocco 2.98
MZ Mozambique 4.48
MM Myanmar 5.29
MP N. Mariana Is. 49.25
NA Namibia 3.52
NR Nauru 928.64
NP Nepal 5.85
NL Netherlands 0.63
NC New Caledonia 4.17
NZ New Zealand 0.13
NI Nicaragua 9.60
NE Niger 3.01
NG Nigeria 3.97
NU Niue 284.21
NF Norfolk Island 565.26
NO Norway 1.11
OM Oman 6.05
PK Pakistan 2.94
PW Palau 13.48
PS Palestine 34.69
PA Panama 8.08
PG Papua New Guinea 3.15
PY Paraguay 5.66
PE Peru 3.76
PH Philippines 4.93
PN Pitcairn Is. 7.97
PL Poland 4.75
PT Portugal 1.90
PR Puerto Rico 17.68
QA Qatar 55.01
RO Romania 5.03
RU Russia 0.30
RW Rwanda 23.45
GS S. Geo. and S. Sandw. Is. 4.02
SS S. Sudan 4.04
SH Saint Helena 5.43
LC Saint Lucia 243.46
WS Samoa 35.40
SM San Marino 445.95
SA Saudi Arabia 2.26
SN Senegal 7.73
RS Serbia 11.50
SC Seychelles 4.72
SL Sierra Leone 15.77
SG Singapore 131.15
SX Sint Maarten 469.92
SK Slovakia 8.36
SI Slovenia 15.11
SB Solomon Is. 3.57
SO Somalia 4.56
ZA South Africa 2.21
ES Spain 3.49
LK Sri Lanka 21.31
BL St-Barthélemy 629.08
MF St-Martin 349.80
KN St. Kitts and Nevis 146.81
PM St. Pierre and Miquelon 189.06
VC St. Vin. and Gren. 141.74
SD Sudan 2.83
SR Suriname 11.67
SZ Swaziland 35.68
SE Sweden 3.65
CH Switzerland 10.55
SY Syria 7.16
ST São Tomé and Principe 47.56
TW Taiwan 12.78
TJ Tajikistan 6.09
TZ Tanzania 4.28
TH Thailand 5.74
TL Timor-Leste 14.50
TG Togo 24.44
TO Tonga 20.65
TT Trinidad and Tobago 33.85
TN Tunisia 11.66
TR Turkey 2.49
TM Turkmenistan 3.35
TC Turks and Caicos Is. 35.20
TV Tuvalu 12.59
UM U.S. Minor Outlying Is. 0.14
VI U.S. Virgin Is. 98.76
UG Uganda 8.72
UA Ukraine 2.64
AE United Arab Emirates 9.89
GB United Kingdom 5.43
US United States 0.82
UY Uruguay 8.94
UZ Uzbekistan 2.77
VU Vanuatu 14.09
VA Vatican 36031.60
VE Venezuela 3.51
VN Vietnam 6.47
EH W. Sahara 5.65
WF Wallis and Futuna Is. 23.11
YE Yemen 3.97
ZM Zambia 4.07
ZW Zimbabwe 6.09

Methods

Method Arguments Description
.zinoChartmap("")

Events

No events