Skip to content

NMS-20152: Forecasting and descriptive legend states on Resource Graphs - #8730

Open
joseanesONMS wants to merge 1 commit into
developfrom
jira/NMS-20152-resource-graphs
Open

NMS-20152: Forecasting and descriptive legend states on Resource Graphs#8730
joseanesONMS wants to merge 1 commit into
developfrom
jira/NMS-20152-resource-graphs

Conversation

@joseanesONMS

Copy link
Copy Markdown

Reintroduce forecasting on the new Resource Graphs page and replace the useless "NaN" legend stats with descriptive states.

The Horizon 36 forecasting ran server-side measurement filters that require R; this reimplements it entirely client-side so it works on any install.

  • Legend: a stat of exactly 0 printed "NaN" (d3 formatPrefix can't derive an SI prefix for 0) — now renders 0.00.
  • Legend: genuinely non-finite stats render No Data (source column had no samples) or Invalid Data (samples present, result non-finite) instead of "NaN".
  • Adds a Forecasting action on each multi-graph that opens a client-side Holt-Winters forecast (additive HW + polynomial trend, outlier removal, confidence bounds) — no R dependency.
  • 1-day / 7-day / 31-day templates plus a Custom panel with per-field validation (confidence and outlier thresholds bounded, season × 2 < training window, integers ≥ 1).
  • Confidence band is constant over the fitted region and widens as √h across the forecast horizon, so projections further out read as less certain.
  • Warns when a large gap is bridged by interpolation, so a fabricated fit isn't presented as confident data.
  • Covered by resourceForecasting.test.ts (engine math) and extended resourceGraphs.test.ts (legend states); full ui suite green.

Legend stats of exactly 0 rendered "NaN" because d3 formatPrefix cannot
derive an SI prefix for 0, and genuinely non-finite stats also printed
"NaN". Zeros now render as a fixed-precision number, and non-finite stats
render as No Data (the source column had no samples) or Invalid Data (it
had samples but the result is non-finite).

Reintroduces the Horizon 36 forecasting feature entirely client-side; the
legacy measurement filters require R, which is not available on every
install. A Forecasting action on each graph opens an additive Holt-Winters
forecast with polynomial trend, outlier removal, and confidence bounds that
widen across the horizon, driven by 1/7/31-day templates or a validated
custom-options panel.

NMS-20152
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant