Velocity X Components

Stats & Numbers

Bullet Chart KPI

The compact way to show actual-vs-target on a scorecard row: a thin fill against a qualitative poor/satisfactory/good band, with a tick marking the target, so a whole KPI reads in the space a single number used to take. Values stay in text too, so it holds up for anyone who can't read the bar visually.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add bullet-chart-kpi

Built for astro.

Full docs for Bullet Chart KPI →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.2
Bullet Chart KPI

Revenue (Q3)

$275k target $250k
Revenue (Q3) — exact values
Value$275k
Target$250k
Poor range up to 100
Satisfactory range up to 200
Good range up to 300

Props

NameTypeRequiredDefaultDescription
labelstringNo'Revenue (Q3)'
valuenumberNo275
targetnumberNo250
maxnumberNoUpper bound of the scale. Defaults to the highest range step.
rangesnumber[]No[100, 200, 300]Ascending breakpoints for the qualitative band, e.g. [100, 200, 300].
rangeLabelsstring[]No['Poor', 'Satisfactory', 'Good']
formattedValuestringNoPre-formatted override for the value display, e.g. "$275k".
formattedTargetstringNoPre-formatted override for the target display, e.g. "$250k".
unitstringNo''
localestringNo'en-US'
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/bullet-chart-kpi/BulletChartKpi.astro

Using the Bullet Chart KPI component

Install it with velocityx add bullet-chart-kpi. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Stats & Numbers.