Line Race
Animate series ranking over time to reveal competitive dynamics and historical trends. Watch data series race each other across time periods in an engaging animated chart.
Line Chart Types/Time Series/Line Race
Animate series ranking over time to reveal competitive dynamics and historical trends. Watch data series race each other across time periods in an engaging animated chart.
Line race charts animate multiple series over time, emphasizing how their relative positions and values change. As years progress, lines move up or down based on their income values, creating a dynamic visualization of economic competition and growth patterns. This approach brings historical data to life, making it easier to spot leaders, catch-up stories, and dramatic shifts in rankings.
Year,Finland,France,Germany,Iceland,Norway,Poland,Russia,United Kingdom
1950,8200,9500,7100,10500,11200,5400,6100,9800
1955,9100,10800,9200,11800,12500,6200,6900,10900
1960,10300,12200,11800,13500,14100,7100,7800,12300
1965,11900,14100,14200,15800,16200,8300,9200,14100
1970,14200,16800,17100,18900,19800,10100,11200,16200
1975,15800,18900,19200,20800,22100,11800,12900,17800
1980,18200,21500,22400,23900,25600,13600,14800,20100
1985,20100,23400,24100,25800,27900,14900,16100,21900
1990,22600,26100,27300,29200,31500,16800,17200,24100
1995,24100,27800,29200,31100,33800,18200,16800,25600
2000,27300,30900,32100,35200,38100,20800,19400,28900
2005,29800,33200,34600,37900,41200,23100,22800,31800
2010,32100,35800,37200,39800,44100,25600,25400,33900
2015,34600,38100,39800,42300,47200,27900,27100,36200
2020,36900,40200,42100,44800,49800,30100,28300,38100
How fast should the animation run? For historical data spanning decades, aim for 8-12 seconds total. This gives roughly 0.15-0.20 seconds per year, fast enough to maintain interest but slow enough to see changes. For shorter time periods, 3-5 seconds works well.
How do end labels work? End labels appear at the right edge of the chart showing the series name and final value. They make it easy to see the final ranking without needing to reference the legend. Make sure to reserve 120-150px of right margin.
Should all lines be visible at once? Yes, showing all lines simultaneously is key to the "race" effect. However, limit to 8 series maximum. Beyond that, consider showing "top 5" plus a selected comparison country, or split into multiple charts.
How to handle series that cross frequently? This is actually desirable—crossing lines create visual interest and show competitive dynamics. Use distinct colors and enable hover emphasis so users can follow individual series. Smooth curves can reduce visual clutter at crossing points.
Can viewers pause or replay? While this markdown defines static configuration, interactive controls (play/pause/scrub) can be added through the chart library's event system. For presentations, consider adding a replay button or loop option.
What if income values vary widely? If one country's income is 10x another, consider using a logarithmic y-axis or splitting into multiple charts by income bracket. Alternatively, show growth rates (% change) instead of absolute values to emphasize dynamics over magnitude.