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
Browser shouldn't crash when loading logarithmic chart.
Current Behavior
Browser crashes when attempting to load a logarithmic chart (probably due to a 0 data point).
Possible Solution
The error appears to occur in core.ticks.js in the do-while loop on line 125. exp is being set to -Infinity because helpers.log10(0) (correctly) returns -Infinity. The loop then becomes infinite because of the check exp < endExp (line 135) — -Infinity + 1 is still -Infinity, and so -Infinity is always less than some integer.
Therefore, modifying line 135 to add a isFinite(exp) check would fix the issue:
Expected Behavior
Browser shouldn't crash when loading logarithmic chart.
Current Behavior
Browser crashes when attempting to load a logarithmic chart (probably due to a 0 data point).
Possible Solution
The error appears to occur in core.ticks.js in the do-while loop on line 125.
exp
is being set to-Infinity
becausehelpers.log10(0)
(correctly) returns-Infinity
. The loop then becomes infinite because of the checkexp < endExp
(line 135) —-Infinity + 1
is still-Infinity
, and so-Infinity
is always less than some integer.Therefore, modifying line 135 to add a
isFinite(exp)
check would fix the issue:Environment
The text was updated successfully, but these errors were encountered: