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)
- Dynamic data not updating HOT 1
- Lines partially missing after upgrade from 4.3.0 to 4.3.1 HOT 1
- Moving from 4.3.0 to 4.3.1 break most of my already existing code due to types HOT 11
- Non-static registry HOT 2
- Doughnut chart legends issue in chart.js
- Partially missing line on time axis, regression in 4.3.1 HOT 11
- Toggle doughnut vs. label resizing HOT 4
- BorderRadius of Bar Chart issue on Firefox 116 HOT 5
- Release 4.3.3 missing tgz file HOT 7
- Rendering flowchart is wrong
- Superfluous value copies inside plugin options
- Vite giving chart.js ActiveElement import error HOT 1
- PackedCircle HOT 4
- Multiple charts freeze Firefox tab with maintainAspectRatio: false HOT 8
- The bars in the graphs which are having the exact values included in the tooltips are not accessible with keyboard keys. HOT 1
- chart.cjs blocked by CDN HOT 5
- How to use the Colors plugin? No docs/info :( HOT 1
- chart.hide(datasetIndex, dataIndex) not hiding bar
- Typo: Missing 's' in documentation of plugins.tooltip.textDirection HOT 3
- Compile for CDN (and SRI) HOT 4
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.