Charts / React BI charts / Time series
Actuals running into a Holt–Winters forecast that fans out into 80% and 95% prediction intervals, with a budget line, flagged anomalies and a backtest of how well the model did.
React component ForecastBand, data through props. One or more measures over a continuous run of time. Tags: forecast, prediction interval, fan chart, holt-winters, backtest, budget, anomaly.
npm i klar-charts
import 'klar-charts/styles.css'
import { ThemeScope, ForecastBand } from 'klar-charts'
# or copy the source:
npx shadcn@latest add https://klar.run/r/bi-forecast-band.json<ForecastBand data={weeklyOrders} model={ORDERS_MODEL} target={weeklyBudget} view={v as 'forecast' | 'backtest'} unit="orders / week" periodNoun="week" height={440} />