[Bug] Horizontal Legend Wrapping doesn't account properly for usage of <br> tags
See original GitHub issueReproduction:
- Set screen size so narrow that all legend items will be displayed in a vertical fashion, with
legend.orientation = "h"
. - Create two traces where the first one has a very long name that will make the second trace’s name wrap into the next line and do not use
<br>
in the first traces name. - Put at least one
<br>
in the second trace’s name.
Here’s an example: https://codepen.io/anon/pen/EdJyQm?editors=0010
If you put a <br>
anywhere in the name of trace6, the name of trace7 will be shown fine.
If you leave it out and your last trace contains a <br>
the second line will be cut off.
Please ping me up if you need further explanation of the problem.
Issue Analytics
- State:
- Created 5 years ago
- Comments:18 (5 by maintainers)
Top Results From Across the Web
Plotly horizontal legend wrapping - RStudio Community
Hi, I am having trouble making making plotly horizontal legends wrap in R. I ... will note if you use the below code,...
Read more ><fieldset>: The Field Set element - HTML - MDN Web Docs
This attribute takes the value of the id attribute of a <form> element you want the <fieldset> to be part of, even if...
Read more >line break between legend title and legend - You.com
The problem is that the horizontal legend overlaps the x-axis title. It occurs if the legend is positioned below (rather than to the...
Read more >Questions and Answers for Wrap Shops - 3M
Can I print on 3M™ Wrap Film Series 1080 or 2080? These films are available in many colors, textures, and finishes, and is...
Read more >Hoisting & Rigging Fundamentals
Explain the proper use and limitations of ... radiation exposure to the sling does not ... equipment tag to verify the inspection due....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just for the record: I found another problem with this. If you have![grafik](https://user-images.githubusercontent.com/6761196/50218117-14741480-038b-11e9-98e1-d13c342eb574.png)
<br>
in yourtrace.name
the white background doesn’t follow properly and the name collides with the next trace:https://github.com/plotly/plotly.js/pull/3024 might be enough to fix this.