Velocity X Components

Stats & Numbers

Goal Progress Tracker

A current-vs-target meter for revenue goals, quotas and SLAs, with a labelled threshold marker on the same track so the team can see at a glance whether they're ahead or behind. Over/under is never shown by colour alone — a worded status pill and a hatch texture on the fill carry the same meaning.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add goal-progress-tracker

Built for astro.

Full docs for Goal Progress Tracker →

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

astro v1.0.1
Goal Progress Tracker

Quarterly revenue

84% of target — behind goal
Budget floor
$84.2k Target $100k

Props

NameTypeRequiredDefaultDescription
currentnumberYes
targetnumberYes
labelstringNo'Goal progress'
unitstringNo''Appended after the formatted number, e.g. "%" or " units". Never a currency symbol — prefix that in formattedCurrent/Target instead.
formattedCurrentstringNoPre-formatted override for the current value display, e.g. "$84.2k".
formattedTargetstringNoPre-formatted override for the target value display, e.g. "$100k".
thresholdnumberNoOptional marker short of the target — a budget cap, quota line, or SLA floor. Defaults to no marker.
thresholdLabelstringNo'Threshold'
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/goal-progress-tracker/GoalProgressTracker.astro

Using the Goal Progress Tracker component

Install it with velocityx add goal-progress-tracker. 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.