Hovertemplate use html tag is not working
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 18.3k
- Forks
- 2k
- Ø Merge
- 2 T. 12 Std.
- Gemergte PRs (30 T.)
- 28
Beschreibung
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.
Expected Behavior
Actual Behavior
Environment
System: Windows 10
Browser: Edge, Chrome
Version: plotly-2.31.0.min.js
frameworks: vue 2
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem verlinkten CodePen und reproduziere das Problem mit Plotly.js 2.31.0. Verfolge anschließend den Rendering-Pfad für hovertemplate in plotly.js. Als erledigt gilt die Aufgabe, wenn in das HTML-Tag eingeschlossener Text in den Hover-Informationen fett erscheint, ohne andere hovertemplate-Formatierungen zu beeinträchtigen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100