data
Interactive Bar Ranking
Ranked rows can change metric and order while each item keeps its spatial identity and value.
- data
- chart
- ranking
- sorting
- bars
Live preview
- 0184%Research12 notes
- 0276%Release15 notes
- 0368%Prototype9 notes
Change the metric or sort order. Rows keep their identity while the ranking changes.
Quick usage
import { InteractiveBarRanking } from "@pinky-ui/systems";
<InteractiveBarRanking items={items} metrics={metrics} label="Campaign ranking" />Presets
Default
Restrained production behaviour.
Default behaviour
Quiet
Reduced intensity for dense product screens.
disabled={true}
Install
Add @pinky-ui/systems as a dependency, or use the CLI to copy this component's source directly into your project — no dependency to manage, fully editable.
npm install @pinky-ui/systemspnpm add @pinky-ui/systemsyarn add @pinky-ui/systemsnpx pinky-ui add interactive-bar-rankingPrefer to run the whole repository locally instead?
git clone https://github.com/florash/Pinky-UI.git
cd Pinky-UI
npm install
npm run devProps
| Prop | Type | Default | Description |
|---|---|---|---|
| items | BarRankingItem[] | — | Named items with values for each selectable metric. |
| className | string | — | Styles the outer interaction surface. |
Accessibility
- Metric and sort controls are semantic buttons; each ranked row exposes rank, label and value.
- Bars are paired with numbers and order, so colour is not the only signal.
Performance
- Layout motion is limited to discrete reorder events; reduced motion switches directly to the new order.
Reduced motion
Motion resolves immediately while semantics, focus and state remain unchanged.
When to use
- Small ranked sets where sorting is part of the reading task
When not to use
- Large tables that need pagination, filtering or virtualization
Skill
Purpose
Ranked rows can change metric and order while each item keeps its spatial identity and value — reordering is a layout animation, not a redraw.
Good for
- Small ranked sets where sorting is part of the reading task
Avoid for
- Large tables that need pagination, filtering or virtualization
Usage
<InteractiveBarRanking items={items} metrics={metrics} label="Campaign ranking" />Accessibility
- Metric and sort controls are semantic buttons; each ranked row exposes rank, label and value.
- Bars are paired with numbers and order, so colour is not the only signal.
Performance
- Layout motion is limited to discrete reorder events; reduced motion switches directly to the new order.
Related: comparison-bars, selection-tray.