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
Seems like autoexpand does not work (or I do something wrong). In the example below, I increased y axis tick label size and font size, so they consume much more space, but margins are not adjusted, and labels are partially hidden outside of the chart container.
At the same time, legend seems to increase corresponding margin. I increased the name length of one of the series to check if it will expand the margin, and it works.
The text was updated successfully, but these errors were encountered:
OK, I found that additionally to autoexpand user have to set automargin: true on axes. I think it would be great to mention this in autoexpand documentation, because it is very unclear, especially if you just trying to use the library for the first time.
Seems like
autoexpand
does not work (or I do something wrong). In the example below, I increased y axis tick label size and font size, so they consume much more space, but margins are not adjusted, and labels are partially hidden outside of the chart container.Reproduction
https://codepen.io/shadow-identity/pen/abeQprO
This is slightly modified example from the documentation: https://plotly.com/javascript/line-and-scatter/#line-and-scatter-plot
What is modified:
margin: {autoexpand: true}
, but it does not change anythingExpected results
Grid size should be reduced (margin should be added to the left) to keep y axis ticks visible
Actual results
Y axis ticks are partially hidden
Environment
Chrome 130, Firefox 133 beta
Plotly from https://cdn.plot.ly/plotly-2.35.2.min.js
Additional info
At the same time, legend seems to increase corresponding margin. I increased the name length of one of the series to check if it will expand the margin, and it works.
The text was updated successfully, but these errors were encountered: