Choropleth Map

Shade countries, states or districts by a value. In the editor this map type is called Region Map.

On this page

A Choropleth map shades each country, state or district by a value — population, income, election results, survey scores — so a reader can compare regions at a glance. In the editor it is called Region Map.

Building one has two parts: choose the areas, then give them values.

Choose the areas

Areas are added under Configure → Areas & colors → Add areas. New areas appear on the map straight away, in gray until they have a value.

Add areas: upload your own boundaries, or search the catalog of continents, countries and their subdivisions.
Add areas: upload your own boundaries, or search the catalog of continents, countries and their subdivisions.
  1. Find a region set

    Search the catalog for a continent, a country, or a level inside a country — for example Germany » Provinces / States or Spain » Regions (NUTS 2).

  2. Pick the regions

    A whole country is added in one step. For World, a continent, or the regions inside a country, tick the ones you want (Select all takes every one) and select Add to Map.

Catalog entryAreas it adds
World, or a continentCountries
A countryThe country as one area
Country » Provinces / StatesFirst-level divisions
Country » Districts / CountiesSecond-level divisions
Country » Major regions (NUTS 1), Regions (NUTS 2), Small regions (NUTS 3)European statistical regions, for EU, EFTA and EU candidate countries
Upload your own boundariesShapes from your own file — see Custom boundaries

Country and subdivision boundaries come from geoBoundaries (CC BY 4.0); NUTS regions come from Eurostat GISCO (© EuroGeographics).

Add the values

There are three ways to give regions their values.

Import a spreadsheet

  1. Upload the file

    Select Import, then Upload Data, and choose a CSV or Excel file with one row per region.

  2. Map the columns

    Choose the Region Name Column and the Value Column. Optionally pick columns for the popup's title and description.

  3. Check the preview

    Preview data mapping shows how many regions matched, which regions have no row, which rows matched no region, and the range of values.

  4. Apply

    Select Create with data. Values are written immediately. Regions that are not in the file keep the values they had.

Each row is matched to a region by, in order: its name, its ISO 3166-2 or NUTS code, its country code, its Mapji region code, and finally a partial name match. Names are compared without case, spaces or punctuation, so North Rhine-Westphalia matches north rhine westphalia. They are not translated, and accented letters are removed rather than simplified — Zürich does not match Zurich — so spell the names exactly as the Selected areas tab shows them, accents included.

Type the values

In the Selected areas tab, type a value next to each region. Edited rows are marked until you save. Undo change reverts one row, and Clear value (keep region as gray) empties it.

Connect a Google Sheet

A Google Sheet can keep the values up to date. In the sheet, have one column with each region's code — the code shown under the region's name in Selected areas — and one with the value. Map them to Region code and Value when you connect. The codes must match exactly, and the sheet only updates values: it never adds or removes regions, so choose the areas first. See Google Sheets sync.

Colors and legend

The color settings appear under Configure → Areas & colors once the map has areas.

SettingOptions
Color scale8 scales: Blues (the default), Greens, Reds, Oranges, Purples, and the two-ended Red Blue, Red Green and Brown Teal
Colour stepsSmooth: one continuous ramp from lowest to highest. Quantiles: each color covers about the same number of regions. Equal intervals: each color covers the same range of values. Custom breaks: you set the values where the color changes.
Classes3 to 8 colors, for every step type except Smooth (default 5)
Value formatAutomatic, Number, Percent or Currency (with a three-letter code such as EUR), and the number of decimals. Used in the legend, the hover tooltip and the popup.

With Smooth, a single outlier can wash out every other region. If most of the map looks the same color, try Quantiles.

Regions without a value are drawn in gray and labeled No data in the legend. Hide or show the legend from the map's Widgets button.

Custom boundaries

To use shapes that are not in the catalog — sales territories, school districts, wards — choose Upload your own boundaries.

  1. Upload the shapes

    Upload a GeoJSON, TopoJSON, KML, KMZ or zipped Shapefile containing areas. Lines and points are added too, but can't be shaded; the upload warns you about them.

  2. Choose the identifier

    Pick the property that identifies each region. It must be unique for every shape; columns whose values repeat or are missing are disabled. Optionally pick a Display name and name the group.

  3. Add the regions

    Select the button that adds them, such as Add 12 regions. A shape whose identifier is already on the map replaces the old one, and that region loses its value until you add it again.

Changes that are saved immediately

Most Choropleth settings wait for Save, but these are written the moment you make them, and Discard does not undo them:

  • adding areas from the catalog, and uploading custom boundaries
  • removing a region with Remove region from map in Selected areas
  • importing values from a spreadsheet

What visitors see

Visitors see the shaded regions, the legend, and a tooltip with the region's name and value as they hover. Selecting a region opens its popup, which you can design under Configure → Popup — see Popups. Search and filters can search the regions by name and value. New Region Maps start on the Black basemap, which makes the colors stand out; change it under Style.

Frequently asked questions

How does Mapji match my data to each region?

It joins on region name first, then falls back to standard codes — ISO 3166-2 for states and provinces, NUTS codes for European regions, ISO3 for countries — and finally to a partial name match. Unmatched rows are reported so you can correct them.

Which regions are supported?

Countries, states/provinces, counties, and European NUTS1–3 regions are built in, sourced from geoBoundaries and Eurostat GISCO.