Spark
GraphSpark
Sparkline from block characters. Values scale to the highest point.
Command
pnpm dlx shadcn@latest add <origin>/r/graph-spark.jsonLatency
Highlight the latest value. Earlier points are muted.
last point is the accent
Sparkline with 12 points. last point is the accentRequests
A quieter series.
last twelve deploys
Sparkline with 12 points. last twelve deploysProps
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| data | number[] | — | Relative values. Scaled to the max. |
| caption | string | — | Muted line under the sparkline. |
| glyphs | "shade" | "ascii" | "hash" | "bar" | string[] | ▁▂▃▄▅▆▇█ | Defaults to spark bars. Pass shade, ascii, hash, bar, or your own characters. |
| corner | string | "+" | Character at each corner of the frame. |
| className | string | — | Passed to the outer frame. |