You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deviation normalization renders missing values as zeros for constant series #2482
normalizeY("deviation") converts missing values into valid zeros when the non-missing series is constant. This creates extra observations in the rendered chart.
Reproduced in native Chromium from source at 2245188895e95ef2043f0ad12c2f900d6e48ef1a (package version 0.6.19):
The two valid constant values should normalize to zero; the missing value should remain missing. Replacing NaN with undefined also produces three dots. With [NaN, undefined, null], the chart renders two observations instead of none.
Passing controls: [2, 2, null] and [2, 4, NaN] each render two dots, and [2, 2, 2] correctly renders three.
In normalizeDeviation, the S[i] === null guard preserves null but not NaN/undefined. When deviation is zero or undefined, those values reach the fallback 0 instead of staying missing. I checked the related open #487 and #2155; they address broader nonnumeric validation and BigInt normalization, while this case involves numeric series with missing values.
No source changes yet; reporting first under the contribution guidelines.
Activity