Multiple errors in charts related to empty data
Summary
When charts are displayed, there are many visible errors in the SVG rendering
Steps to reproduce
-
Open the DevTools console in the browser
-
Visit https://staging.gitlab.com/gitlab-org/monitor/monitor-sandbox/-/environments/180571/metrics
What is the current bug behavior?
Multiple errors in SVG calculating code:
As well as multiple errors are shown when reducing an array:
What is the expected correct behavior?
No errors.
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
Edited by Miguel Rincon