Skip to content
mdxcn is now part of Shadcn Labs. details

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

[ 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

[ TOKENS ]
  • week
  • prompt,
  • completion,
  • cached
<GraphStack title="TOKENS" ticks={28}>

- week: 61 prompt, 27 completion, 12 cached

</GraphStack>
[ PROPS ]
PropTypeDefaultDescription
titlestring—Caption drawn on the top edge of the frame.
rowsStackRow[]—Each row has a label and labeled numeric segments. Optional when children are Markdown.
childrenMarkdown—- docs: 28 js, 18 css, 54 images
accentstring—Segment label to paint with the accent. Defaults to the first.
ticksnumber24Bar 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.
cornerstring"+"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.
classNamestring—Passed to the outer frame.