-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Ability to constrain legend background to the legend text #4132
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
Fixed in https://github.com/plotly/plotly.js/compare/drop-firstRender-in-legend-draw will be part of 1.50.0 |
nice! |
Actually, I can't even reproduce this bug on latest, let alone on my dev branch. My attempt: https://codepen.io/etpinard/pen/OJLXRJa?editors=1010 Which font are you using? |
https://codepen.io/etpinard/pen/OJLXRJa?editors=1010 now has a minimal reproducible example. The problem happens with horizontal legends when |
- which gives better margin pushes, fixes legendgroup_horizontal_wrapping mock
- which gives better margin pushes, fixes legendgroup_horizontal_wrapping mock
- which gives better margin pushes, fixes legendgroup_horizontal_wrapping mock
- which gives better margin pushes, fixes legendgroup_horizontal_wrapping mock
- which gives better margin pushes, fixes legendgroup_horizontal_wrapping mock
- which gives better margin pushes, fixes legendgroup_horizontal_wrapping mock - use per-item width for toggle-rect width in ALL horizontal legends, we could eventually compute "per-column" width, if someone finds it useful
- which gives better margin pushes, fixes legendgroup_horizontal_wrapping mock - use per-item width for toggle-rect width in ALL horizontal legends, we could eventually compute "per-column" width, if someone finds it useful
- which gives better margin pushes, fixes legendgroup_horizontal_wrapping mock - use per-item width for toggle-rect width in ALL horizontal legends, we could eventually compute "per-column" width, if someone finds it useful
- which gives better margin pushes, fixes legendgroup_horizontal_wrapping mock - use per-item width for toggle-rect width in ALL horizontal legends, we could eventually compute "per-column" width, if someone finds it useful
- which gives better margin pushes, fixes legendgroup_horizontal_wrapping mock - use per-item width for toggle-rect width in ALL horizontal legends, we could eventually compute "per-column" width, if someone finds it useful
- which gives better margin pushes, fixes legendgroup_horizontal_wrapping mock - use per-item width for toggle-rect width in ALL horizontal legends, we could eventually compute "per-column" width, if someone finds it useful
- which gives better margin pushes, fixes legendgroup_horizontal_wrapping mock - use per-item width for toggle-rect width in ALL horizontal legends, we could eventually compute "per-column" width, if someone finds it useful
How do you get the semi-transparent legend background in your screenshot above? |
In this example, the legend's background color spans the entire width of the graph. It'd be nice if it only spanned the legend text, so that the lines on the right of the graph aren't beneath the semi-transparent white legend background.
The text was updated successfully, but these errors were encountered: