How to make a heatmap of countries by year

Updated 8 Nov 20262 min read

To make a heatmap of countries by year, choose Heatmap in the GeoLens studio, pick an indicator and the countries, set the years and download the chart. Each country is a row, each year a column, and a cell's colour is its value.

What a heatmap of countries by year shows

Read a row from left to right for one country's history, or a column from top to bottom for one year across every country. A heatmap fits many countries and a long window into one frame, where that many lines would cross and crowd.

This one sets Bulgaria against the other 26 EU members from 1990 to 2025. Zero is a named cut in the key, so growing and shrinking years split at a glance.

Heatmap of annual population growth for the 27 EU members, one row per country and one column per year from 1990 to 2025, with Bulgaria's row highlighted.

How to make a heatmap, step by step

Eight steps, from an empty studio to the image file. Each picture shows the control to use, ringed in gold.

  1. Open geolens.eu/create and choose Heatmap, under Over time.

    The start screen of the GeoLens studio with the Heatmap tile ringed, beside Line and Bars.
  2. Press the indicator name at the top left and search for your measure, such as population growth.

    The indicator search with population growth typed in and Population growth, UN via World Bank, 224 countries, ticked.
  3. Search for each country and tick it. Each one becomes a row, and the first in the list is the highlighted row.

    The country search box ringed above the list, with Bulgaria first and its gold highlight dot.
  4. Drag the year range to set the first and last year. Each year becomes a column.

    The year range slider set from 1990 to 2025, ringed.
  5. Open Rows to show your picks or all countries, ranked high first or low first.

    The Rows menu beside the chart, with Your picks or All, and High first or Low first.
  6. Keep Values on and set a window of 11 years or fewer: the cells then print their figures where they have room.

    A heatmap of 2015 to 2025 with a figure in every cell and the Values button ringed.
  7. Press the title on the chart and type the finding, so the reader knows what to look for.

    The chart title, 36 falls in 36 years: Bulgaria's population since 1990, ringed.
  8. Open Download and choose PNG image. SVG vector comes with PLUS.

    The Download menu open, with PNG image ringed above SVG vector and CSV data.

TipUse Log breaks when values span orders of magnitude, such as population or GDP.

Get the colours and the rows right

GeoLens sorts the values into five classes on round breaks and names every cut in the key. A far tail is clamped into the top class, so one extreme value does not wash out the rest.

Colours, beside the chart, picks the ramp and turns on Log breaks and Reverse.

Ranked rows put similar countries next to each other, so bands of colour form and the exceptions show. Rows set to All draws up to 30 countries.

When a line chart is better

With a handful of countries, use lines. Position on an axis reads more exactly than colour, and a line shows how steep a change is.

These small multiples put the same indicator on four line panels. Niger still grows more than 3% a year, India has slowed to under 1%, and the slopes show how fast each one slowed.

Small multiples of annual population growth from 1990 to 2023, one panel each for Niger, India, China and Japan.

Edit this chart