stack
GraphStack
Parts of a whole on one bar. Write `- marketing: 48 js, 22 css, 30 images`. For a share shown as cells, use Waffle.
- use it
- Good for parts of a whole on one track.
- instead
- There is no pie chart. Use Waffle if you want a share of cells.
bundle
- marketing
- docs
- js,
- css,
- images
<GraphStack title="BUNDLE" palette="multi">
- marketing: 48 js, 22 css, 30 images
- docs: 28 js, 18 css, 54 images
</GraphStack>install
command
tokens
- week
- prompt,
- completion,
- cached
<GraphStack title="TOKENS" ticks={28}>
- week: 61 prompt, 27 completion, 12 cached
</GraphStack>| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| rows | StackRow[] | — | Each row has a label and labeled numeric segments. Optional when children are Markdown. |
| children | Markdown | — | - docs: 28 js, 18 css, 54 images |
| accent | string | — | Segment label to paint with the accent. Defaults to the first. |
| ticks | number | 24 | Bar width in characters. |
| glyphs | "shade" | "ascii" | "hash" | "bar" | string[] | — | One character per segment, or a preset. Defaults to █▓▒░#=+ -. |
| 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. |