-
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
Stacked Logarithmic axes with a 0 data point crashes page #4473
Labels
Milestone
Comments
Looks like the problem is that minNotZero is not set. The code for that is at Chart.js/src/scales/scale.logarithmic.js Line 50 in 5d95280
Adding
To the bottom of the if clause appears to fix the problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
Chart should not break page
Current Behavior
Chart breaks page
Possible Solution
Steps to Reproduce (for bugs)
Go to https://jsfiddle.net/kadeyuy/r190msc6/18/ and change the stacked from false to true and hit run and the page will crash.
Context
Trying to have a stacked logarithmic bar graph so that I can show how different data sets contribute to total number while also being able to see smaller data points.
Environment
The text was updated successfully, but these errors were encountered: