rank
GraphRank
Labels ranked by a number. Write `- 12,400 /docs`. To compare two histograms side by side, use Bars.
- use it
- Good for traffic, coverage, or anything you'd sort highest first.
routes
- /docs12,400
- /install4,100
- /plot860
- /rank420
<GraphRank title="ROUTES">
- 12,400 /docs
- 4,100 /install
- 860 /plot
- 420 /rank
</GraphRank>install
command
coverage
- frame100%
- plot82%
- invoice41%
<GraphRank title="COVERAGE" max={100}>
- 100% frame
- 82% plot
- 41% invoice
</GraphRank>| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| items | RankItem[] | — | Each row is a label, a number, and an optional display string for the right column. Optional when children are Markdown. |
| children | Markdown | — | - 12,400 /docs |
| max | number | — | Scale for the bars. Defaults to the largest value. |
| ticks | number | 20 | How many character slots each bar uses. |
| glyphs | "shade" | "ascii" | "hash" | "bar" | string[] | "shade" | Character set. shade is ·░▒▓█. ascii is .- =#@. Pass a preset or your own characters. |
| palette | "mono" | "duo" | "multi" | "mono" | mono is one accent plus muted. duo paints the second series with --graph-accent-2. multi cycles three accents. |
| corner | string | "+" | Character at each corner of the frame. |
| frame | "box" | "corners" | "rule" | "none" | "box" | box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content. |
| className | string | — | Passed to the outer frame. |