Skip to content

Pie and donut chart race maker

Start from a library dataset or upload a CSV. Your data never leaves your browser.

Loading editor…

How to make a pie chart race or donut chart race

  1. Upload a CSV with a name, a date (or year) and a value, or a wide table with one column per date. Use raw numbers: each slice’s share is worked out from that year’s total. See CSV format below.
  2. Pick a template under Style, choose pie or donut under Format and how many slices to show under Timing. Whether the rest form an “Others” slice is under Advanced, Slices.
  3. Under Advanced, Slice labels & table, place the labels around, beside or inside the slices, and choose what goes in the hole: the year, the total, a caption.
  4. Set the speed under Timing, choose a canvas size under Format (landscape, square or vertical for Shorts and Reels) and press Export video.

CSV format

The maker reads a CSV file: plain text, one row per line, cells separated by commas, with a header row naming the columns. Excel, Google Sheets and Numbers all save this format. In Excel choose File → Save As → CSV UTF-8 (Comma delimited); in Google Sheets, File → Download → Comma-separated values.

Two layouts work, and the maker detects which one you have.

Long layout: one row per name and date

Three columns are enough: who, when, how much.
namedatevaluegroupcode
China20221412175000East Asia and PacificCHN
India20221425423212South AsiaIND
China20231410710000East Asia and PacificCHN
India20231438069596South AsiaIND

This layout is best for data exported from a database or a spreadsheet log. Rows can be in any order. Columns named name, country or label; date, year or round; and value, count or total are recognised automatically.

Wide layout: one column per date

Names down the side, one column for each year.
name202120222023
China141236000014121750001410710000
India141420389614254232121438069596
United States332100166333996304336755052

This is how most published tables look. The reverse, with dates down the side and one column per name, works too: pick Wide (a column per name) under Layout in Data if it isn’t detected.

Sample CSV, long layoutSample CSV, wide layout

Sample figures: population of eight countries, 2010–2023, from the World Bank (CC BY 4.0).

Optional columns

  • Group or category (group, category, region, party…): bars in the same group share a colour once Colour by is set to category.
  • Code (code, iso3): a three-letter country code such as IND. With Built-in images → Country flags, each bar gets its flag.
  • Image (image, logo, flag): the web address of a picture for each name, shown on its bar. The image host has to allow other sites to use it, or the picture won’t show in the exported video.

If a column is picked wrongly, change it under Data. Nothing in your file is changed.

Dates

  • Years: 2023.
  • Months and days: 2023-04 or 2023-04-15. Other formats your browser understands, such as Apr 15 2023, usually work too; year-first is safest.
  • Plain numbers, such as election rounds or match days: 1, 2, 3.
  • Anything else (Q1, Week 2, Round A) is played in the order it first appears in the file.

Numbers

  • Thousands separators, spaces and the signs $ € £ ₹ % are ignored, so 1,234,567 and $1 234 567 both read as 1234567.
  • Use a dot for decimals: 12.5. A decimal comma such as 12,5 reads as 125.
  • Leave a cell empty when there’s no figure. By default the chart moves in a straight line between the years on either side; Missing values in Data can hold the previous value or treat it as zero instead.
  • Two rows with the same name and date are added together. That’s handy for totals, but check for rows copied twice by mistake.

Common problems

  • “That file has no usable rows”: the file probably uses semicolons instead of commas, which Excel does in many European languages. Save it again as CSV UTF-8 (Comma delimited), or change the list separator in your system’s region settings.
  • The chart is empty, or one bar holds everything: the name, time or value column is mapped to the wrong column. Open Data and pick the right ones.
  • Values are 10 or 100 times too large: the file uses decimal commas. Replace them with dots.
  • The same country appears twice: the names are spelled differently, for example USA and United States. Make them identical.
  • Accents or symbols show as garbage: save the file as UTF-8.
  • Years play in the wrong order: mixed date styles, such as 2023 in some rows and FY2023 in others, can’t be read as dates. Use one style throughout.

Frequently asked questions

What is a pie chart race?

A pie chart race is an animated pie chart whose slices grow, shrink and trade places year by year, so you watch each name's share of the whole change over time. The biggest names get their own slices; everyone else is gathered into an “Others” slice, so the circle is always the real total.

What is a donut chart race?

A donut chart race is the same animation drawn as a ring: a pie with a hole in the middle. The hole holds the year and the total as the race plays, which leaves the slices free for names and shares. In the maker one setting switches between pie, donut, thin ring and half donut.

Pie or donut: which should I use?

Use a donut when you want the year and total in the middle and a cleaner, modern look for video; use a full pie when one or two slices dominate and you want their size to read at a glance. Both show the same shares, so you can switch at any time without changing the data.

Do I have to calculate percentages first?

No. Upload the raw numbers (tonnes, people, dollars) with a name and a year for each; every share is worked out from that year's total. Values should add up to a meaningful whole, which is why races of rates such as life expectancy have no pie view.

How many slices are too many?

Six to ten slices read well in a video. Set the number of slices in the maker and the rest join the “Others” slice; labels for very small slices are left out or moved to a column at the side, so they never overlap.

How do I export a pie or donut chart race as a video?

Open the maker, pick a dataset or upload a CSV, choose a template or style it yourself and press Export video. The MP4 is made in your browser at up to 4K, in landscape, square or vertical sizes for Shorts and Reels. Nothing is uploaded, and it is free.