-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Automargins in narrow spaces #4350
Comments
Actually, longer than half the width of the chart is enough to trigger the problem: Lines 1842 to 1851 in 513491e
|
... and I should add the lines pasted in the above comment are very old, so I doubt the current |
What would you expect the change to be? I thought that to fix this we would need #5246 ? |
From @chriddyp:
I’m seeing this issue in 1.51.1 - I’m assuming that the axes labels are longer than the width of the chart itself. maybe we can introduce some kind of minwidth property for the layout where the chart would shrink up to minwidth and display cut off tick labels (e.g. shrink the chart up to 100px wide)
a min width on one end or the other might be nice. either say - if there isn’t enough room, make the graph at least 100px wide (layout.minwidth or something) or e.g. set the min width in the tick labels - display at least 40px of tick labels
or maybe there is a more elegant solution to display the tick labels in a nicer way for compact layouts. like on top of the bars or something. or at least get the hover labels to show up on top of the bars
The text was updated successfully, but these errors were encountered: