Line chart race maker
Start from a library dataset or upload a CSV. Your data never leaves your browser.
How to make a line chart race
- Upload a CSV with a name, a date (or year) and a value, or a wide table with one column per date. See CSV format below for examples and sample files.
- Under Format, choose values or ranks and how the time axis moves: growing with the race, a moving window, or the whole period. Timing sets how many lines to show.
- Style it: pick a template under Style, then line shape, width, shading, flags and highlighted names. Add timed notes for the moments that matter under Moments.
- 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 line chart race?
A line chart race is an animated line chart that draws each line year by year and keeps its history on screen, so you see how the leaders got there: who climbed steadily, who stalled and where two lines crossed. Only the current top few lines are drawn; a line that drops out fades away.
Line chart race or bar chart race: which should I use?
A bar chart race answers who is ahead right now; a line chart race answers how the gap opened or closed. Use lines when the path matters (a crossover, a slump, steady growth), bars when the ranking matters. Every race on this site can be watched both ways with the Bars / Lines switch.
Can I show ranks instead of values?
Yes. Set “Lines show” to “Rank” in the maker’s Lines panel and each line plots its position, 1st to 10th, so overtakes become crossing lines (a bump chart).
How do I export a line chart race as a video?
Open the maker, pick a dataset or upload a CSV, style the chart 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.
Is it free?
Yes. The maker, the exports and every chart on the site are free, with no account and no watermark beyond the logo you choose.