How to make an animated line chart race

Updated 8 Nov 20262 min read

To make an animated line chart race, choose Line race in the GeoLens studio, pick an indicator, the years and 2 to 8 countries, then download the race as a video. Each line grows one year at a time, so viewers watch gaps open and close.

What a line chart race shows

The lines start in the first year and grow one year at a time. Nothing is thrown away, so the last frame reads as an ordinary line chart.

This race follows electricity use per person in six countries from 1995 to 2024. China starts at 770 kWh and reaches 7,038 kWh, passing the UK, Italy, Germany and France. Japan still ends highest, at 7,781 kWh.

Line chart race of electricity use per person in China, Japan, France, Germany, Italy and the United Kingdom from 1995 to 2024, China highlighted.

How to make a line chart race, step by step

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

  1. Open geolens.eu/create and choose Line race, under For social.

    The start screen of the GeoLens studio with the Line race tile ringed, beside Story video and Bar race.
  2. Press the indicator name at the top left and search for your measure, such as electricity consumption.

    The indicator search with electricity consumption typed in and Electricity consumption per person ticked at the top of the list.
  3. Drag the year range so the race starts shortly before the change you want to show.

    The year range slider set from 1995 to 2024, ringed.
  4. Tick 2 to 8 countries. The first in the list wears the highlight, so drag your story’s country to the top.

    The country list with China first and its gold highlight dot, ringed, above Japan, France, Germany, Italy and the United Kingdom.
  5. Move the playhead to the year that matters, press + on the Text track and write one line. It shows as the race passes that year.

    The race timeline with the plus button of the Text track ringed and a short text clip ringed at the playhead, near 0:16.
  6. Check the race lane: GeoLens flags each pass. Select a flag to put the music’s drop on that pass.

    The race lane with a UK flag at 2018 and a German flag at 2023, the 2023 pass ringed.
  7. Press Play and watch the whole race once. Check that every pass and every line of text reads at full speed.

    The line race paused as China passes France and Germany, with that line shown as the title and the Play button ringed.
  8. Open Download and choose Video for the MP4. Video download comes with PLUS.

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

TipEnd on the latest year every country has, so no line stops short of the others.

Pick data where the lines can meet

Use values per person, shares or an index. On totals the biggest countries sit far above the rest, the lines never cross and the race has nothing to show.

Keep one highlight colour and quiet colours for the rest. Each line carries its flag, name and value at its head, so the race needs no legend.

When another form is better

If two countries are the whole story, tick only those two and choose Duel in the shape menu above the chart. It shows the gap between them and the year they cross.

If only the order matters, choose Bar race in the same menu.

For a web page or a report, choose Line: a still chart lets readers compare values at their own pace.