-
-
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
Outside text relativebarmode confusing when bars disconnected #3116
Comments
Interesting, there's at least one clear bug here, that the orange bar always gets its text pushed inside if it has a But the logic for the blue trace is a bit more complicated. I guess the simplest option would be if the trace stacked on it has a If the trace above has a base -> no auto-inside text, you have to do it yourself. Thanks @eivindjahren - another very clear and helpful report! |
@alexcjohnson I have made a work in progress PR on my fork (first PR here so needed to conform to the contribution guidelines). It should implement your proposed solution. I still want to test it out a bit more, but hopefully this is in the right direction. Another solution is to have 'outside' always mean 'outside', if you want the smart behavior you use 'auto'. |
Great PR @eivindjahren - I'm always happy to see a one-line change in
Possible, though the existing |
@alexcjohnson I tried to summarize the behavior of outside in the |
Closed by #3156 🎉 (correct me and reopen if I missed something) |
With relative barmode and
{textposition: 'outside'}
, outside text will smartly position the text of the first bar as 'inside'. However, when there are two disconnected bars this results in the text of both bars being 'inside'. This is not a problem when barmode has the default value.https://codepen.io/haskellelephant/pen/JmpJMZ
The text was updated successfully, but these errors were encountered: