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
It seems like the issue is from multiple attempts to fit the y-axis. The first time, it uses the ticks values of ["5","4","3","2","1","0"]. It then sets the minWidth of the scale to the width calculated from these single-digit values. The UI then does a second fit using the values ["5.0","4.5","4.0","3.5","3.0","2.5","2.0","1.5","1.0","0.5","0"]. With this fit, in core.scale.js on the line "minSize.width = Math.min(me.maxWidth, minSize.width + largestTextWidth);", the maxWidth is the width from when the labels were a single digit.
Expected Behavior
Entirety of axis labels should be visible.
Current Behavior
The chart y-axis labels are cut off.
Possible Solution
It seems like the issue is from multiple attempts to fit the y-axis. The first time, it uses the ticks values of ["5","4","3","2","1","0"]. It then sets the minWidth of the scale to the width calculated from these single-digit values. The UI then does a second fit using the values ["5.0","4.5","4.0","3.5","3.0","2.5","2.0","1.5","1.0","0.5","0"]. With this fit, in core.scale.js on the line "minSize.width = Math.min(me.maxWidth, minSize.width + largestTextWidth);", the maxWidth is the width from when the labels were a single digit.
Steps to Reproduce (for bugs)
https://codepen.io/anon/pen/VzpLqd
Context
I think as a workaround, I can manually specify the ticks for now.
Environment
The text was updated successfully, but these errors were encountered: