Bar chart race from a spreadsheet
A bar chart race shows how the ranking of several items changes over time: each period is a frame and the bars swap places as the values change. In Datavix it comes from a spreadsheet with dates, items and values, without uploading the file to any server.
Updated

01
What the spreadsheet needs
Datavix offers the bar chart race when it finds a date column, 3 or more items (the series competing for the ranking), 4 or more periods and a value column. The simplest layout is one row for each item in each period:
| Date | Item | Value |
|---|---|---|
| 2022-01 | Store A | 120 |
| 2022-01 | Store B | 95 |
| 2022-01 | Store C | 80 |
| 2022-02 | Store A | 130 |
| 2022-02 | Store B | 140 |
| 2022-02 | Store C | 85 |
The values are fictional, only to show the layout. If a requirement is missing, the race appears dimmed in the chart list, with the reason.
02
How to create it
Add the spreadsheet
Drag the .xlsx, .xls or .csv file into Datavix.
Check the columns
The date, the item and the value need the right role on the reading screen.
Pick “Bar chart race”
It shows up in the chart list when your data supports it.
Play it
The animation starts on its own. Use Play and Pause, or pick a period.
Export
Interactive HTML, PNG of the current frame, PowerPoint or MP4 video.
03
By period or cumulative
Without the Cumulative option, each frame shows the value of that period alone. With it, the values add up over time, which suits totals such as cumulative sales.
04
Tips for a good race
- Use the same item names in every period. Differences in capitalization or accents become separate items, and Datavix suggests merging similar labels.
- Prefer regular periods (every month, every year) so the pace of the race makes sense.
- Write the title as a statement of what the race shows, not just the name of the measure.
05
Exporting the race
- Interactive HTML: one file that opens offline, with Play and Pause.
- PNG: the current frame at 1920×1080 or 4K.
- PowerPoint: the race comes out as the closest native chart for the same data (ranked bars), with a note on the slide. The animation does not go into the file. See export to PowerPoint.
- MP4 video: vertical or square, no audio. See video for social media.
06
Quick questions
Is a “bar chart race” the same as a “racing bar chart”?
Yes. They are two names for the same chart.
How many periods and items do I need?
At least 4 periods and 3 items, with a date column and a value column.
Does the spreadsheet go to a server?
No. Everything happens in your browser.
Keep reading
- Read alsoThe step by step from an Excel or CSV file to an animated chart.
- Read alsoA roughly 20-second MP4, vertical or square, recorded in your browser.
- Read alsoThe 30 Datavix charts and what each one needs from your spreadsheet.