Skip to content

Commit c49f4ab

Browse files
spec: add bar-race-animated specification (#3656)
## New Specification: `bar-race-animated` Related to #3653 --- ### specification.md # bar-race-animated: Animated Bar Chart Race ## Description An animated horizontal bar chart that visualizes how rankings and values change over time. Bars smoothly transition positions as their values update, with the chart reordering to maintain a sorted ranking at each time step. This dynamic visualization format is highly engaging for storytelling with time-series data, making it popular for showing the rise and fall of entities like countries, companies, or products over extended periods. ## Applications - Visualizing how country GDP rankings have shifted over decades, with bars racing as economies grow and overtake one another - Tracking brand market share evolution throughout the year, showing competitive dynamics in an engaging animated format - Displaying historical sports team standings or player statistics over multiple seasons, revealing dynasty periods and surprising reversals ## Data - `entity` (categorical) - The items being compared and ranked (countries, companies, teams, products) - `time` (datetime or numeric) - Time points for each snapshot, driving the animation sequence - `value` (numeric) - The metric determining bar length and ranking at each time point - `color` (categorical, optional) - Category or group for coloring bars consistently - Size: 10-20 entities with 20-100 time points recommended for smooth, comprehensible animation - Example: Country GDP by year, streaming platform subscribers by month, brand revenue by quarter ## Notes - Bars should be sorted by value at each frame, with smooth transitions for position changes - Entity labels should remain attached to their bars throughout the animation - A visible time indicator (counter, axis label, or title) should update during playback - Animation speed should be configurable or use a reasonable default duration - For static output or libraries without animation support, show a small multiples grid of key time snapshots - Consider including play/pause controls and a timeline scrubber for interactive versions - Color should remain consistent for each entity across all frames for tracking --- **Next:** Add `approved` label to the issue to merge this PR. --- :robot: *[spec-create workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20886474470)* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 5447d26 commit c49f4ab

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# bar-race-animated: Animated Bar Chart Race
2+
3+
## Description
4+
5+
An animated horizontal bar chart that visualizes how rankings and values change over time. Bars smoothly transition positions as their values update, with the chart reordering to maintain a sorted ranking at each time step. This dynamic visualization format is highly engaging for storytelling with time-series data, making it popular for showing the rise and fall of entities like countries, companies, or products over extended periods.
6+
7+
## Applications
8+
9+
- Visualizing how country GDP rankings have shifted over decades, with bars racing as economies grow and overtake one another
10+
- Tracking brand market share evolution throughout the year, showing competitive dynamics in an engaging animated format
11+
- Displaying historical sports team standings or player statistics over multiple seasons, revealing dynasty periods and surprising reversals
12+
13+
## Data
14+
15+
- `entity` (categorical) - The items being compared and ranked (countries, companies, teams, products)
16+
- `time` (datetime or numeric) - Time points for each snapshot, driving the animation sequence
17+
- `value` (numeric) - The metric determining bar length and ranking at each time point
18+
- `color` (categorical, optional) - Category or group for coloring bars consistently
19+
- Size: 10-20 entities with 20-100 time points recommended for smooth, comprehensible animation
20+
- Example: Country GDP by year, streaming platform subscribers by month, brand revenue by quarter
21+
22+
## Notes
23+
24+
- Bars should be sorted by value at each frame, with smooth transitions for position changes
25+
- Entity labels should remain attached to their bars throughout the animation
26+
- A visible time indicator (counter, axis label, or title) should update during playback
27+
- Animation speed should be configurable or use a reasonable default duration
28+
- For static output or libraries without animation support, show a small multiples grid of key time snapshots
29+
- Consider including play/pause controls and a timeline scrubber for interactive versions
30+
- Color should remain consistent for each entity across all frames for tracking
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Specification-level metadata for bar-race-animated
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: bar-race-animated
5+
title: Animated Bar Chart Race
6+
7+
# Specification tracking
8+
created: 2026-01-11T00:09:16Z
9+
updated: 2026-01-11T00:09:16Z
10+
issue: 3653
11+
suggested: MarkusNeusinger
12+
13+
# Classification tags (applies to all library implementations)
14+
# See docs/reference/tagging-system.md for detailed guidelines
15+
tags:
16+
plot_type:
17+
- bar
18+
data_type:
19+
- categorical
20+
- numeric
21+
- timeseries
22+
domain:
23+
- general
24+
- business
25+
features:
26+
- animated
27+
- horizontal
28+
- ranking
29+
- temporal

0 commit comments

Comments
 (0)