Sparkline

Bar Sparkline

A micro chart in bars for discrete counts: a bar says there is nothing between the values, and the tallest one is coloured and labelled.

What you can change

  • the series through values, the captions through label and value
  • the period edges through fromLabel and toLabel
  • the screen-reader label through ariaTemplate with {label}, {value}, {max} and {count}

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/sparkline-003?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

One file, zero dependencies, the --vibeui-sparkline-003-* palette. A server component with no SVG: the bars are a grid sized by the number of counts, so the width splits evenly regardless of series length. A bar's height is a share of the maximum through its own --share variable, with a 2px floor: a zero count has to stay visible, otherwise a gap in the row reads as broken data rather than as zero. The maximum is picked out in the accent colour and printed in the footer — without axes that is the only anchor in the scale. The whole row is role=img with a label built from a template.

Tags

  • sparkline
  • bars
  • metric
  • compact
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…