question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Horizontal Legend Wrapping doesn't account properly for usage of <br> tags

See original GitHub issue

Reproduction:

  1. Set screen size so narrow that all legend items will be displayed in a vertical fashion, with legend.orientation = "h".
  2. 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.
  3. 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:closed
  • Created 5 years ago
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Braintelligencecommented, Jan 17, 2019

Just for the record: I found another problem with this. If you have <br> in your trace.name the white background doesn’t follow properly and the name collides with the next trace: grafik

1reaction
etpinardcommented, Nov 13, 2018

https://github.com/plotly/plotly.js/pull/3024 might be enough to fix this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found