-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Automargin clipping ticklabels #2985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Update, if you do have a yaxis title that is long enough to run into ticks, it will cover them up. I've updated the pen with another section that has // Uncomment the line below and the yaxis.title will cover up some ticks
// layout.yaxis.title = "This is y and it runs into ticks" and if you uncomment the long title you can see what I mean. It is very possible that I'm simply trying to use this in the wrong way. If there is a better/easier way to reach my goal (minimum margin where nothing is clipped), I'd love to hear it |
Related: #2434 |
Here's a particularly egregious example of I think the same issue: https://codepen.io/anon/pen/XOWWNa |
One of the goals of ddk is to provide reduced margins by default so we're running into this issue in most of our examples as the margin size is templated as in the example below: |
Would setting a margin of 1px (together with |
@etpinard Thanks for taking a look. I don't think this will work for us though; it seems any I've tried the If |
I'm trying to use
*axis.automargin
to get the minimum necessary margin to display all tick labels/axis titles.To do that I set
layout.margin.[tblr]
to 0 and then setlayout.[xy]axis.automargin
to true.When I do this and do not have axis titles, the tick labels are slightly clipped. See this pen for an example: https://codepen.io/anon/pen/XPzEeN
When in the pen if you uncomment the line that sets
layout.yaxis.title = ""
, you'll notice that the ticks are no longer clipped.The text was updated successfully, but these errors were encountered: