Skip to content

Hovertemplate use html tag is not working #6982

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

Open
ck80074 opened this issue Apr 24, 2024 · 2 comments
Open

Hovertemplate use html tag is not working #6982

ck80074 opened this issue Apr 24, 2024 · 2 comments
Labels
bug something broken P3 backlog

Comments

@ck80074
Copy link

ck80074 commented Apr 24, 2024

I'm encountering an issue with the hovertemplate feature in Plotly.js. When I define a hovertemplate and use the HTML tag<b>to bold text within it, the hover information doesn't display in bold font as expected. Instead, it appears in regular font.

Steps to Reproduce
Define a trace and add hovertemplate
Use the HTML tag<b>within the hovertemplate to bold text.
Observe the hover information to see if it displays in the correct format.

codepen

Expected Behavior
bold

Actual Behavior
not bold

Environment
System: Windows 10
Browser: Edge, Chrome
Version: plotly-2.31.0.min.js
frameworks: vue 2

@ck80074 ck80074 changed the title hovertemplate use html tag is not working Hovertemplate use html tag is not working Apr 24, 2024
@gvwilson gvwilson self-assigned this Jul 12, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added bug something broken P3 backlog labels Aug 9, 2024
@inari-mchristie
Copy link

Also seeing this issue with bold text with annotations[].text

@inari-mchristie
Copy link

My issue with bold text with annotations[].text may be related, but I've narrowed down my problem to using the new strict CSP support so I opened a new issue here: #7380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog
Projects
None yet
Development

No branches or pull requests

3 participants