Plot
GraphPlot
Line or area chart built from columns of block characters.
Command
pnpm dlx shadcn@latest add <origin>/r/graph-plot.jsonp95
Last cap is the live point.
90
9
9
area plot, 12 points, min 0, max 9jandec
Errors
Line only. progress reveals a prefix.
80
8
8
line plot, 10 points, min 0, max 8monfri
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| data | number[] | — | One value per column, left to right. |
| labels | string[] | — | First and last labels under the axis. |
| height | number | 7 | Rows in the plot. |
| variant | "line" | "area" | "area" | Area fills down from the cap with ░. |
| progress | number | 1 | 0–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. |
| corner | string | "+" | Character at each corner of the frame. |
| className | string | — | Passed to the outer frame. |