-
Notifications
You must be signed in to change notification settings - Fork 11.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RangeError: minimumFractionDigits value is out of range. (Thrown from new Chart()
)
#9019
Comments
Options passed to ref to canvas:
opts:
|
Also, FWIW, this error is non-fatal and causes a lot of noise in logs. The chart will update and render correctly as soon as the element has proper dimensions. |
Actually, on further thought. I believe this may actually result in a memory leak, since the |
Additionally, this bug seems to occur when |
This error still happens with a chart that has initial w/h=0 |
For me it happens when The constraint should be |
@etimberg I have a random issue with this, sometimes happens sometimes not, and always when the canvas is not yet attached to the dom. Adding the The fix is easy, and mathematically correct, as the range for |
If you found this bug, please see #10673 for a potential solution. |
Hi all,
Thanks for the great library. I don't have a repro for this (famous last words) but it seems to happen when a specific chart is created. The chart library is calculating
NaN
for the chart height (even though it should likely just be0
)Expected Behavior
Error should not be thrown.
Current Behavior
First call to getNumberFormat:
![image](https://user-images.githubusercontent.com/362329/116908742-4101f180-ac11-11eb-9c15-f0e808189ccb.png)
Second call to getNumberFormat:
![image](https://user-images.githubusercontent.com/362329/116908782-4c551d00-ac11-11eb-8b79-dfbe585b56c9.png)
Intermediate values during chart construction:
![image](https://user-images.githubusercontent.com/362329/116909229-e9b05100-ac11-11eb-9e0c-21c0c0ca3f81.png)
RangeError is thrown.
Possible Solution
Steps to Reproduce
Context
Environment
None yet.
The text was updated successfully, but these errors were encountered: