Velocity X Components

Stats & Numbers

Rank Change List

A ranked leaderboard — top accounts, top pages, top reps — where every row states how far it moved since the last period in plain words alongside the arrow, so a skim of the list still tells you who's climbing and who's slipping without reading a tooltip.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add rank-change-list

Built for astro.

Full docs for Rank Change List →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.1
Rank Change List

Top accounts this month

vs last month
  1. Rank 1: Acme Co
    182,400 Up 1 place
  2. Rank 2: Bluewater Ltd
    156,200 Down 1 place
  3. Rank 3: Nova Supply
    98,100 No change
  4. Rank 4: Harlow Group
    74,300 Up 2 places
  5. Rank 5: Carrow & Finch
    61,900 New entry
Top accounts this month — rank, value and movement vs last month
Rank Label Value Movement
1 Acme Co 182,400 Up 1 place
2 Bluewater Ltd 156,200 Down 1 place
3 Nova Supply 98,100 No change
4 Harlow Group 74,300 Up 2 places
5 Carrow & Finch 61,900 New entry

Props

NameTypeRequiredDefaultDescription
titlestringNo'Top accounts this month'
rowsRankChangeRow[]No[ { label: 'Acme Co', value: 182400, rank: 1, previousRank: 2 }, { label: 'Bluewater Ltd', value: 156200, rank: 2, previousRank: 1 }, { label: 'Nova Supply', value: 98100, rank: 3, previousRank: 3 }, { label: 'Harlow Group', value: 74300, rank: 4, previousRank: 6 }, { label: 'Carrow & Finch', value: 61900, rank: 5 }, ]
periodLabelstringNo'vs last month'
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/rank-change-list/RankChangeList.astro

Using the Rank Change List component

Install it with velocityx add rank-change-list. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Stats & Numbers.