-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] <sup> for trace.name is not respected in hoverlabel #3357
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
Just to make sure: This bug is still true for 1.43.0. |
Thanks for the report |
@etpinard Did someone look at this bug yet? 😸 Need to know if this will be fixed within this quarter, so I can refactor some of the plots before we publish them with this bug. |
We currently strip out all pseudo-html tags for plotly.js/src/components/fx/hover.js Lines 927 to 937 in 51b5c25
I don't remember why we do this. Maybe @alexcjohnson remembers? |
I suspect we hadn't bothered figuring out vertical sizing of the name field, also we're often truncating the name and it could be weird to truncate in the middle of some pseudo-html. Probably wouldn't be too hard to resolve these issues and allow pseudo-html there though. I'm a bit concerned about color there though: it would be pretty easy to have colored text in the legend - either part or all of |
Would it be viable to just allow EDIT: Truncating in the middle of the pseudo HTML would be really awful, though... This should be fixable by applying agnostic HTML tag regex I guess. |
Hello everyone.
If you provide a name for your trace containing
<sup>
it doesn't work for hoverlabels with hoverinfo containing name.https://codepen.io/anon/pen/aPpmzw
As you can see, the legend is correct but the hoverlabel shows the number as if
<sup>
was never provided.The text was updated successfully, but these errors were encountered: