Bar Chart Race

Bars grow, overtake each other and re-sort smoothly as the numbers change over the years.

Popularity score

2020

  1. React40
  2. Angular34
  3. Vue30
  4. Svelte18
  5. Solid12
  6. Qwik8

Edit with AIPro

Describe a change to Bar Chart Race and get the updated code. The live preview above stays as the original.

Quality report

Kinetiq Verified
  • Loads cleanly

    No errors on phone and desktop screens.

  • Fits a phone screen

    No sideways scrolling at 375 px wide.

  • No serious accessibility problems

    Passed the axe-core WCAG 2.1 A/AA check.

Size (gzipped)
1.4 KB
Extra packages
lucide-react, motion
Reduced motion
Respected

Tested automatically in Chrome 157.0.8103.79 with axe-core 4.14.1. Automated tools catch only part of all accessibility problems, so treat this as a solid minimum, not a full audit.

Installation

One command

Adds the file to components/ui/bar-chart-race.tsx and installs lucide-react and motion for you.

$ npx kinetiq-ui login
$ npx kinetiq-ui add bar-chart-race

Run login once. It needs a free account, because the code is for signed-in users only. Get your token.

Or do it by hand

  1. Install the dependencies

    $ npm i motion lucide-react
  2. Sign in, open the Code tab above and copy it into components/ui/bar-chart-race.tsx

  3. Use it

    The file exports the component and a Demo showing typical usage. Import whichever you need.