Skip to content

Hovertemplate use html tag is not working #6982

Open
@ck80074

Description

@ck80074

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions