Bar chart race maker
Start from a library dataset or upload a CSV. Your data never leaves your browser.
How to make a bar chart race
- Upload a CSV with a name, a date (or year, or round number) and a value — or a wide table with one column per date. See CSV format below for examples and sample files.
- Check the column mapping under Data; add a category column to colour bars by group and an image column to show logos or flags.
- Style the chart: pick a template under Style, then fine-tune the background and text; every part of the chart (bars, labels, fonts, ticker, logo) is under Advanced.
- 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
| name | date | value | group | code |
|---|---|---|---|---|
| China | 2022 | 1412175000 | East Asia and Pacific | CHN |
| India | 2022 | 1425423212 | South Asia | IND |
| China | 2023 | 1410710000 | East Asia and Pacific | CHN |
| India | 2023 | 1438069596 | South Asia | IND |
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
| name | 2021 | 2022 | 2023 |
|---|---|---|---|
| China | 1412360000 | 1412175000 | 1410710000 |
| India | 1414203896 | 1425423212 | 1438069596 |
| United States | 332100166 | 333996304 | 336755052 |
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 asIND. 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-04or2023-04-15. Other formats your browser understands, such asApr 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, so1,234,567and$1 234 567both read as 1234567. - Use a dot for decimals:
12.5. A decimal comma such as12,5reads 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
USAandUnited 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
2023in some rows andFY2023in others, can’t be read as dates. Use one style throughout.
Frequently asked questions
What is a bar chart race?
A bar chart race is an animated bar chart in which the bars are re-ranked at every time step, so you can watch items overtake one another as their values change through time.
How do I make a bar chart race from my own data?
Open the bar chart race maker, upload a CSV file and choose which columns hold the name, the time and the value. Both long files (one row per name and date) and wide files (one column per date) are detected automatically.
Can I export the bar chart race as a video?
Yes. The chart is rendered frame by frame in your browser and saved as an MP4 (H.264) file at up to 4K and 60 frames per second. Nothing is uploaded, so your data stays on your device.
What can I customise?
Everything: canvas size, background colour, gradient or image, bar colours, corner radius, shadows and spacing, images on the bars, fonts, sizes and positions of every label, the number format, the time ticker, the animation speed and easing, a title, a credit line and a logo.