Comments (5)
I've already encountered an example which gives an infinite loop in that piece of code. We set the dimensions of a line chart to be small, e.g. width:180px, height:45px, and we had instead of passing in empty strings for the labels we accidentally where using descriptive labels (such as "January", "February", etc) so the logic around calculating how to arrange the labels on an angle made them be vertical and then the scaleHeight became negative -- causing maxSteps and minSteps to both be negative and thus an infinite loop. cc: @drasque
from chart.js.
This seems to have happened to a lot of people, see #94 and #182.
from chart.js.
calculateOrderOfMagnitude can be fixed this way:
Math.floor(Math.log10(Math.abs(val)))
from chart.js.
I am not able to reproduce this problem using the new version release candidate.
Could you please check if this has been fixed and close or create a JSBin showing the issue.
Thank you
from chart.js.
Believe this should be fixed in the latest 1.x beta releases.
Let me know if you're experiencing issues still.
from chart.js.
Related Issues (20)
- skipNulls is not working with dataset parsing
- Zoom plugin is not registered exception HOT 1
- "borderRadius" at bottom is ignored, when using "borderSkipped: 'middle'"
- Timeline / Gantt Style Charts HOT 1
- Data-labels not rendering. Bar Element element coordinate properties 'y' and 'base' are assigned 'NaN' when all values for that dataset are zero. HOT 3
- Error on IPHONE 5s running 12.9.7 HOT 4
- Add more styles for legends
- Configuration "animation: false" doesn't load point icon images HOT 2
- Floating Stacked Bar Chart problem + Duplicate legend problem
- Allow setting constant width for bars and variable width for categories
- Setting Y-Min for bar chart messes with interactions/tooltips HOT 1
- ticks padding does not work as expected
- padding for the legend
- Clip option on scale doesn't do anything
- Cannot read properties of null (reading 'getContext')
- Radial Bar Chart Label Issue HOT 3
- Y-labels cropped way too early for vertically stacked axes
- Ticks callback function don't return initial value labels HOT 2
- floating point on y axis HOT 8
- Easy API for setting background color on each dataset's tooltip
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chart.js.