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
Expected behavior
Hiding an Axis by setting the option display:false for the axis should have the chart render without padding to accommodate the space previously occupied by the axis.
Current Behavior
Hiding the Y Axis only performs the expected behavior if the X axis is also hidden. If the X Axis is visible, hiding the Y axis will not cause the chart to re scale to consume the area previously used by the now hidden Y Axis.
Hiding the X Axis performs the expected behavior, re scaling the bars/display area of the chart to consume the area previously used by the now hidden X Axis.
Click on the "Toggle X" button and notice how the chart resizes itself to consume the space previously occupied by the X Axis
Click on the "Toggle Y" button with the X Axis visible and notice how the chart does NOT resize itself to consume the space previously occupied by the visible Y Axis
Click on the "Toggle Y" button with the X Axis hidden and notice how the chart resizes itself to consume the space previously occupied by the visible Y Axis
Context
Proper sizing/padding/margin control on the chart is crucial for proper alignment with elements outside of the chart itself.
The text was updated successfully, but these errors were encountered:
It seems that extra spaces are added on the left and right based on the tick label widths. I guess these spaces are required when offset is false but it should be differently calculated when it is true.
Expected behavior
Hiding an Axis by setting the option display:false for the axis should have the chart render without padding to accommodate the space previously occupied by the axis.
Current Behavior
Hiding the Y Axis only performs the expected behavior if the X axis is also hidden. If the X Axis is visible, hiding the Y axis will not cause the chart to re scale to consume the area previously used by the now hidden Y Axis.
Hiding the X Axis performs the expected behavior, re scaling the bars/display area of the chart to consume the area previously used by the now hidden X Axis.
https://jsfiddle.net/ceg2qntd/3/
Steps to Reproduce
Context
Proper sizing/padding/margin control on the chart is crucial for proper alignment with elements outside of the chart itself.
The text was updated successfully, but these errors were encountered: