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
For example to use Math.ceil() to get the smallest integer greater than or equal to a given number.
and then there will always be an excellent result ;)
Expected Behavior
Current Behavior (Sometimes)
Possible Solution
This is because - we get a fractional value in the variable
totalLeftBoxesWidth
also all totals -
total ( Left | Right | Top | Bottom ) BoxesWidth
https://github.com/chartjs/Chart.js/blob/master/src/core/core.layoutService.js#L405
For example to use
Math.ceil()
to get the smallest integer greater than or equal to a given number.and then there will always be an excellent result ;)
And maybe this will solve another issue #4637
Steps to Reproduce (for bugs)
for example on sample page press btn
Randomize Data
many timeshttp://www.chartjs.org/samples/latest/charts/line/basic.html
The text was updated successfully, but these errors were encountered: