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.
$ velocityx add goal-progress-tracker Built for astro.
Full docs for Goal Progress Tracker →
Needs a licence key —
subscribe here, then
velocityx loginonce.
Quarterly revenue
84% of target — behind goalProps
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| current | number | Yes | ||
| target | number | Yes | ||
| label | string | No | 'Goal progress' | |
| unit | string | No | '' | Appended after the formatted number, e.g. "%" or " units". Never a currency symbol — prefix that in formattedCurrent/Target instead. |
| formattedCurrent | string | No | Pre-formatted override for the current value display, e.g. "$84.2k". | |
| formattedTarget | string | No | Pre-formatted override for the target value display, e.g. "$100k". | |
| threshold | number | No | Optional marker short of the target — a budget cap, quota line, or SLA floor. Defaults to no marker. | |
| thresholdLabel | string | No | 'Threshold' | |
| locale | string | No | 'en-US' | |
| className | string | No | '' |
File this creates
The CLI writes this path into your project, relative to its root — nothing else moves.
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.
Related components
More from Stats & Numbers.
Stat band whose numbers count up when the section scrolls into view, then settle. No runtime dependency — plain Astro plus a small inline observer. Honours prefers-reduced-motion by rendering final values immediately.
astroPuts two numbers on one shared scale and calls out the delta — the proof-point shape for 'we cut your load time' or 'conversion rate before vs. after' case studies. Ships a screen-reader summary alongside the bars, so the comparison reads correctly even without the visual.
astroOne headline figure sized to carry a section on its own, with a short annotation line underneath for context. Locale-safe number formatting (including compact '4.2M' notation) and a count-up that lands on the real value immediately for reduced-motion users.
astroThe 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.
astro