ForecastTable
Projections dashed and labeled everywhere.
npx shadcn add @lopifi/forecast-tableHow it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
Driver-based projections with scenarios. Projections render dashed on every chart and carry a "forecast" label on every figure. Actuals to date and forecast remaining look different within the same period.
The line between what happened and what's believed is drawn in three places.
Between periods. Everything after the last closed period is shaded, ruled with a dashed edge, set in the secondary tone, and headed by a column that says forecast under its label. Every projected figure sits beneath that word, not just near it.
Within a period. A month that has started but not finished is three columns, not one: what has posted, what's expected for the rest, and the landing they sum to. A part-elapsed month shown as one figure next to eight closed ones borrows their authority. That's the difference between "we're at 41.2 with nine days to go" and "we did 58.2," which nobody said and everybody quotes. The landing is computed from the other two, never supplied. A caller who provides all three will eventually provide three figures that don't add up, and the grid would render the contradiction without noticing.
Between scenarios. The scenario in force is named in the caption and the toolbar. The component won't rank scenarios or style one as the good case. An unlabeled forecast is indistinguishable from a claim, and a ranked one is a recommendation dressed as a forecast.
API change: ForecastRow.polarity is now required, no default (it previously fell back to standard).
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Metrics & analysis
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section ForecastTable renders in, the calculators behind its figures, and the ledger payloads that feed it.
- ForecastTable, runningThe metrics showcase — live, with theme, density, grayscale and reduced-motion switches.
- NPV, IRR & XIRRNPV, payback and every IRR a series has, not just the first a solver finds.
- Metrics & analysisMetrics & analysis — specs for 13 React components: MetricDefinition, NonGaapReconciliation, MrrBridge, BudgetVsActual and 9 more.
Components are copied into your repository and meant to be edited. Rounding policy, fiscal calendar and compliance copy differ per company.
Release notes
Get an email when Metrics & analysis changes
Your copy doesn’t update itself when we fix something here.
- One email when a Metrics & analysis component needs a migration
- Nothing when nothing changes
Or install it now
npx shadcn add @lopifi/forecast-table