Skip to content

Plot

GraphPlot

Line or area chart built from columns of block characters.

Command

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

p95

Last cap is the live point.

[ P95 ]
90
jandec
area plot, 12 points, min 0, max 9

Errors

Line only. progress reveals a prefix.

[ ERRORS ]
80
monfri
line plot, 10 points, min 0, max 8

Props

PropTypeDefaultDescription
titlestringCaption drawn on the top edge of the frame.
datanumber[]One value per column, left to right.
labelsstring[]First and last labels under the axis.
heightnumber7Rows in the plot.
variant"line" | "area""area"Area fills down from the cap with ░.
progressnumber10–1. How many columns are revealed.
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.