NMS-20152: Forecasting and descriptive legend states on Resource Graphs - #8730
Open
joseanesONMS wants to merge 1 commit into
Open
NMS-20152: Forecasting and descriptive legend states on Resource Graphs#8730joseanesONMS wants to merge 1 commit into
joseanesONMS wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
0printed "NaN" (d3formatPrefixcan't derive an SI prefix for 0) — now renders0.00.resourceForecasting.test.ts(engine math) and extendedresourceGraphs.test.ts(legend states); fulluisuite green.