Skip to content

Bars

GraphBars

Two bar groups side by side, drawn with glyphs. The right group is usually the larger one.

Command

pnpm dlx shadcn@latest add <origin>/r/graph-bars.json

Before / after

Same shape on both sides. The right group is just taller.

[ THROUGHPUT ]

before

after

Draft to shipped

Different values. Processor label is custom.

[ DRAFT TO SHIPPED ]

draft

edit

shipped

Props

PropTypeDefaultDescription
titlestringCaption drawn on the top edge of the frame.
fromBarSeriesLeft series. values is an array of relative heights.
toBarSeriesRight series. Set size to lg for the larger group.
processorstringOptional label between the two groups.
glyphs"shade" | "ascii" | "hash" | "bar" | string[]"shade"Character set. shade is ·░▒▓█. ascii is .- =#@. Pass a preset or your own characters.
cornerstring"+"Character at each corner of the frame.
classNamestringPassed to the outer frame.