Map Chart

A world choropleth that colors countries by visitors, sales, or another numeric value. Includes an automatic color scale, country tooltips, click callbacks, and optional pan and zoom.

Default

Bind one row per country. CountryKey accepts ISO alpha-2 or alpha-3 codes, or English country names. DataKey reads the numeric value. The color scale is derived from the data automatically.

Visitors by Country

Switch periods to update the data. OnDataPointClick reports the country name, value, and original source row index. A country absent from the dataset reports DataIndex = -1 and a null value.

Custom Colors and Pan/Zoom

Add BbVisualMap to set the range and colors. Calculable shows draggable range handles. Enable Roam on the series to pan and zoom.

Country Data

Matching ignores case and surrounding whitespace. Unknown countries are ignored; the first row wins when multiple rows identify the same country, so aggregate the data before binding. Missing and non-finite values use the no-data fill; zero remains a measured value.

Use one map series per chart. Natural Earth boundaries are bundled and loaded only when a map is used. The overview includes 241 countries and regions, excluding Antarctica; very small islands may be absent or difficult to see at world scale.

See Chart for shared chart parameters and BbVisualMap.