Skip to content
HomeCobalt

Bar list

Ranks names by value as rows of text, each filled as far as its share of the largest and each carrying its figure written out, so the fill is a picture of the text.

Examples

Holdings by sector, ranked, each row a link to that sector's holdings.
In a cardThe forms filed this month in a card, each with its change on last month, and the long tail summed in one row.

Filings this month

  1. Form ADV+12%1,284
  2. 13F holdings+3%942
  3. Form D−4%611
  4. Form PF+1%208
  5. Every other form377

Usage

Use it when

  • Names ranked by one value that a person reads row by row, such as holdings by sector or filings by form.
  • A long tail that would shrink the leaders to slivers: pass it as one rest row.

Use something else when

  • A value over time, or two measures at once. Use LineChart or ScatterChart instead.
  • One figure and its change, with no ranking. Use Stat instead.
  • Records a person sorts, filters and opens. Use DataTable instead.
  • One value against a fixed limit. Use Meter instead.

Rules

General

Content

Avoid

Limits

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/bar-list.json
import { BarList } from "@/components/cobalt/ui/bar-list"