Guides / Formatting your data
How to format your data
Paste a table from Excel or Google Sheets into the Data box, or upload a CSV. Put the column names in the first row. The editor works out which of the layouts below you have, and tells you how it read your table under the Data box.
The five layouts
Dates down the side
One column for each thing you're comparing, one row for each date. The usual spreadsheet layout.
| Year | Apple | Microsoft | |
|---|---|---|---|
| 2015 | 583 | 443 | 365 |
| 2018 | 1100 | 780 | 730 |
| 2021 | 2900 | 2500 | 1900 |
| 2024 | 3800 | 3200 | 2300 |
Dates across the top
One row for each thing, the dates as column headers. How Wikipedia and the World Bank lay out tables.
| Country | 2000 | 2010 | 2020 |
|---|---|---|---|
| India | 1060 | 1240 | 1400 |
| China | 1290 | 1340 | 1410 |
| USA | 282 | 309 | 331 |
One row per entry
A list of donations, sales, matches or posts, with as many columns as you like. Pick which column becomes the bars, which number to add up and which column is the timeline. We add it all up.
| Year | Donor | Party | Amount | Notes |
|---|---|---|---|---|
| 1936 | Ames Family | Democratic | $100,000 | |
| 1940 | Ames Family | Democratic | $300,000 | Two gifts, one late |
| 1940 | Bell Trust | Republican | $200,000 | |
| 1944 | Bell Trust | Republican | $450,000 | |
| 1948 | Cole Union | Democratic | $500,000 |
Date, name, value
Exactly three columns and one row per data point. What databases and many data downloads give you.
| Date | Name | Value |
|---|---|---|
| 2024-01 | Shoes | 120 |
| 2024-01 | Hats | 80 |
| 2024-02 | Shoes | 150 |
| 2024-02 | Hats | 95 |
| 2024-03 | Shoes | 170 |
| 2024-03 | Hats | 140 |
A ranking, no dates
Just names and one number. The bars grow in from zero and settle in order.
| Platform | Followers |
|---|---|
| TikTok | 52000 |
| 31000 | |
| YouTube | 18000 |
| X | 9000 |
Lists of donations, sales or matches
A lot of real data is a list of separate entries: every political donation, every sale, every game. Each row has its own date, a name, an amount and maybe notes. You don't need to rearrange it first. Paste the whole list and the editor shows a Pick what to chart box with three choices:
- Bars and lines
- The column whose values become the bars, such as Donor. Each different donor gets one bar. Choose Party instead and you get a two-way race between the parties.
- Add up
- The number to total for each bar, such as Amount. If your file has two money columns (say, the original amount and the amount in today's dollars), pick the one you want. Count the rows charts how many entries each one has instead.
- Timeline
- The column the video moves through, usually Year or Date. Choose No timeline to show one ranking of the overall totals.
- Running total
- On by default. Each bar keeps everything it has added up so far, so the race shows who has given the most up to that year. Turn it off to show each year on its own.
Columns like Rank, Notes or Source are ignored. Rows missing a name, an amount or a date are skipped, and the editor tells you how many.
| Year | Donor | Party | Amount | Notes |
|---|---|---|---|---|
| 1936 | Ames Family | Democratic | $100,000 | |
| 1940 | Ames Family | Democratic | $300,000 | Two gifts, one late |
| 1940 | Bell Trust | Republican | $200,000 | |
| 1944 | Bell Trust | Republican | $450,000 | |
| 1948 | Cole Union | Democratic | $500,000 |
Read as: Amount added up for each Donor, by Year, as a running total.
Open this example in the editor →Handled for you
- $, €, £, commas, % and K / M / B are fine: $1,200 · 3.5M · 12%
- Blank cells are fine. Gaps in the middle are filled in, and a blank at the start means it isn't there yet
- Title lines above the table, footnotes like [1], and Total or Average rows are left out
- Dates can be 2024, 2024-03, Mar 2024, 3/15/2024 or labels like Week 3 and Q2 2024
- Comma, tab and semicolon separated all work, so you can paste straight from Excel or Google Sheets
When it doesn't look right
- Only a few values show up, or the names are years
- Your file is probably a list of entries. Check the Pick what to chart box under the Data box and choose the right column for each role.
- The names and dates are swapped
- Click Wrong way round? Flip it under the Data box.
- "No numbers found"
- Put the column names in the first row and plain numbers in the cells. Text like "about 5 million" can't be read.
- It's not a table at all
- An email, notes or a table copied badly from a PDF? Paste it anyway and click Fix it with AI (part of Pro + AI). It turns the text into a clean table you can check before you export.