Rank Race
A bar chart race: rows re-rank with spring layout animation as the years play, with a scrubbable timeline.
Interactive Stage Preview
Customize
6 optionsAccent Color
Rows
5
Years
10
Step Interval
1400
Auto Play
Animation Speed
100
Get this component
Copies the component into your project, installs what it needs, and pulls down its images. Nothing to download by hand.
npx spark-ui-registry@latest add rank-raceWrites to components/spark-ui/ by default; override with --dir. The file is yours to edit; there is no package to keep in sync.
PropertyTypeDefaultDescription
theme'dark' | 'light''dark'Colour scheme of the card.compactbooleanfalseShrinks the card to a smaller fixed height.colorstring (hex)'#ff8a3d'Leader and bar color.rowsnumber5Number of ranked rows.yearsnumber10Length of the timeline.intervalnumber1400Milliseconds per year.autoPlaybooleantrueStart playing automatically.speednumber100Playback speed of entry and transition animations, as a percentage.